From: Petr Uzel Date: Mon, 26 May 2014 16:28:03 +0000 (+0200) Subject: sfdisk: suppress Linux-irrelevant warnings with -L X-Git-Tag: v2.25-rc1~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee6369973e5adcda95f9eb0c5ead896e9f946f5d;p=thirdparty%2Futil-linux.git sfdisk: suppress Linux-irrelevant warnings with -L 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 --- diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index 3c55d5e3fe..12162af877 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -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."));