]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: suppress Linux-irrelevant warnings with -L
authorPetr Uzel <petr.uzel@suse.cz>
Mon, 26 May 2014 16:28:03 +0000 (18:28 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 May 2014 14:12:54 +0000 (16:12 +0200)
Sfdisk prints out a warning about extended partition not
starting at a cylinder boundary. Since this is irrelevant
for linux, the -L option should suppress this warning.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
disk-utils/sfdisk.c

index 3c55d5e3fe6e83b3d8dcaa7acb140c3b02f70a77..12162af87768c1048b1c426d873cd4cbe7da928b 100644 (file)
@@ -1383,7 +1383,7 @@ extended_partition(char *dev, int fd, struct part_desc *ep, struct disk_desc *z)
                      "from %lld to %lld\n"
                      "(For listing purposes only. "
                      "Do not change its contents.)"), ep->start, start);
-       } else {
+       } else if (!Linux) {
            warnx(_("Warning: extended partition does not start at a "
                      "cylinder boundary.\n"
                      "DOS and Linux will interpret the contents differently."));