From: Ruediger Meier <sweet_f_a@gmx.de>
To: Petr Uzel <petr.uzel@suse.cz>
Cc: "util-linux" <util-linux@vger.kernel.org>,
Roberto Angelino <rangelino@novell.com>,
Holger Hetterich <hhetter@suse.com>,
Stanislav Brabec <sbrabec@suse.cz>
Subject: Re: [PATCH] sfdisk: suppress Linux-irrelevant warnings with -L
Date: Sat, 31 May 2014 16:25:32 +0200 [thread overview]
Message-ID: <201405311625.33102.sweet_f_a@gmx.de> (raw)
In-Reply-To: <1401121683-18503-1-git-send-email-petr.uzel@suse.cz>
On Monday 26 May 2014, Petr Uzel wrote:
> 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.
I would really like to have -L enabled by default on linux. Project name
is util-LINUX and if we even run it on linux, why being still bothered
per default?
BTW we have some more warnings of this kind in libfdisk/src/dos.c
where we don't have option -L:
/* Same physical / logical beginning? */
if (cxt->geom.cylinders <= 1024
&& (pbc != lbc || pbh != lbh || pbs != lbs)) {
fdisk_warnx(cxt, _("Partition %zu: different physical/logical "
"beginnings (non-Linux?): "
"phys=(%d, %d, %d), logical=(%d, %d, %d)"),
partition + 1,
pbc, pbh, pbs,
lbc, lbh, lbs);
}
> Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
> ---
> disk-utils/sfdisk.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c
> index 3c55d5e..12162af 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"
>
next prev parent reply other threads:[~2014-05-31 14:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 16:28 [PATCH] sfdisk: suppress Linux-irrelevant warnings with -L Petr Uzel
2014-05-27 14:43 ` Karel Zak
2014-05-31 14:25 ` Ruediger Meier [this message]
2014-06-02 7:49 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201405311625.33102.sweet_f_a@gmx.de \
--to=sweet_f_a@gmx.de \
--cc=hhetter@suse.com \
--cc=petr.uzel@suse.cz \
--cc=rangelino@novell.com \
--cc=sbrabec@suse.cz \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox