** Description changed:

  Package: gdisk
  
  Bin: sgdisk
  
  gdisk:
-   Installed: 0.8.1-1build1
-   Candidate: 0.8.1-1build1
-   Version table:
-  *** 0.8.1-1build1 0
-         500 http://mirror.yandex.ru/ubuntu/ precise/universe amd64 Packages
-         100 /var/lib/dpkg/status
+   Installed: 0.8.1-1build1
+   Candidate: 0.8.1-1build1
+   Version table:
+  *** 0.8.1-1build1 0
+         500 http://mirror.yandex.ru/ubuntu/ precise/universe amd64 Packages
+         100 /var/lib/dpkg/status
  
  System:
  Description:  Ubuntu 12.04 LTS
  Release:      12.04
  
- As described here 
http://sourceforge.net/p/gptfdisk/code/ci/master/tree/sgdisk.8 (sgdisk):
- .TP 
+ As described here 
http://sourceforge.net/p/gptfdisk/code/ci/master/tree/sgdisk.8 (sgdisk) (Return 
values):
+ .TP
  .B 3
  Non\-GPT disk detected and no \fI\-g\fR option
  
  But if we run:
  sgdisk -b ~/test.dump /dev/sda ; echo $?
  
  where sda has MBR, no GPT, we get ec = 0.
  Here is example of fix:
  https://github.com/kini/gptfdisk/compare/master...overquota:master
  (need "saveData = 1;" in case 'b' for check condition and return 3 worked 
then)
  
  Also there fix of make errors, when compiling on ubuntu precise
  (#include <unistd.h> in diskio-unix.cc) - I don't know, maybe it's not
  necessary in upstream, i just couldn't build bin file without it
  
  Could this be fixed in gdisk?
  We have this problem in precise, but in newer packages problem exists too.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to gdisk in Ubuntu.
https://bugs.launchpad.net/bugs/1445456

Title:
  sgdisk return 0 if nonGPT partition style (must return 3)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdisk/+bug/1445456/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to