]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: make some tests conditional to !Linux
authorGiulio Orsero <giulioo@gmail.com>
Tue, 23 Aug 2011 10:19:38 +0000 (12:19 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Aug 2011 10:19:38 +0000 (12:19 +0200)
commitcc393e381def1540db7b1273dde9410bea616b22
tree3b27dda2151d92afd29711b346680f5070907b6e
parent33487796e7f9bfeeb347d57c60e7df65b06168b2
sfdisk: make some tests conditional to !Linux

This patch makes the following tests/actions conditional to "!Linux":

- Force cylinders as format instead of MB, even if user asked for MB.
  This solves a bug where if you use "-L -uM", set 1 as starting MB
  and the disk is larger than a certain size (about 1GB) the partition
  would start at sector 1 instead of 1MB due to cyl rounding.

- Warn about partitions not starting/ending on cyl boundaries.

- Check if CHS is ok.

I used the "!Linux" notation since it was already used elsewhere in
the code.

Signed-off-by: Giulio Orsero <giulioo@pobox.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/sfdisk.c