From: Karel Zak <kzak@redhat.com>
To: Ruediger Meier <sweet_f_a@gmx.de>
Cc: Petr Uzel <petr.uzel@suse.cz>,
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: Mon, 2 Jun 2014 09:49:31 +0200 [thread overview]
Message-ID: <20140602074931.GK9000@x2.net.home> (raw)
In-Reply-To: <201405311625.33102.sweet_f_a@gmx.de>
On Sat, May 31, 2014 at 04:25:32PM +0200, Ruediger Meier wrote:
> 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?
sfdisk code sucks and it's necessary to rewrite it to use libfdisk
(sfdisk is the last remaining fdisk), I'd like to do this change in
v2.26.
> 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);
> }
this code is for DOS compatible mode which is disabled by default
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2014-06-02 7:49 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
2014-06-02 7:49 ` Karel Zak [this message]
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=20140602074931.GK9000@x2.net.home \
--to=kzak@redhat.com \
--cc=hhetter@suse.com \
--cc=petr.uzel@suse.cz \
--cc=rangelino@novell.com \
--cc=sbrabec@suse.cz \
--cc=sweet_f_a@gmx.de \
--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