public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Bertrand Jacquin <beber@meleeweb.net>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: sfdisk 2.20.1 --no-reread do BLKRRPART
Date: Tue, 21 May 2013 15:35:23 +0200	[thread overview]
Message-ID: <20130521133523.GB3078@lady-voodoo.exosec.local> (raw)
In-Reply-To: <20130520111523.GB19935@x2.net.home>

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

Hi,

Le lundi 20 mai 2013 à 13h15, « Karel Zak » a écrit :
> 
>  Sorry for the delay :-)

No rush at all ! This was only a report about some ugly report in some
scripts :)

> On Thu, Feb 16, 2012 at 09:16:18PM +0100, Bertrand Jacquin wrote:
> > When creating partitions on a destination that is not a block device,
> > sfdisk do a BLKRRPART ioctl even when --no-reread option is used, but
> > looking at documentation --no-reread only apply to the beginning
> > process.
> > 
> > Would it be fine to extend that to the complete process ?
> 
>  Not sure, but I think it should be enough to don't call BLKRRPART
>  ioctl for non-block devices.
> 
> >   dd if=/dev/zero of=/tmp/disk.img bs=1024 count=4032
> >   strace -fF -s 1024 -e trace=ioctl \
> >     sfdisk --no-reread -C2 -H32 -S63 -q -f \
> >       /tmp/disk.img << EOF
> > unit: sectors
> > 
> > part1 : start= 63, size= 3969, Id=83
> > part2 : start= 4032, size= 98784, Id=83
> > part3 : start= 102816, size= 22176, Id=83
> > part4 : start= 124992, size= 0, Id=83
> > EOF
> 
> ...
> 
> > Re-reading the partition table ...
> > ioctl(3, BLKRRPART, 0)                  = -1 ENOTTY (Inappropriate ioctl for device)
> > BLKRRPART: Inappropriate ioctl for device
> 
>  This use case (disk images partitioning) should be fixed in the git
>  tree.

Seen and approved ! Thanks Karel

-- 
Bertrand Jacquin, EXOSEC (http://www.exosec.fr/)
ZAC des Metz - 3 Rue du petit robinson - 78350 JOUY EN JOSAS
Tel: +33 1 30 67 60 65  -  Fax: +33 1 75 43 40 70
GSM: +33 6 71 01 70 30  -  mailto:bjacquin@exosec.fr

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

      reply	other threads:[~2013-05-21 13:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-16 20:16 sfdisk 2.20.1 --no-reread do BLKRRPART Bertrand Jacquin
2013-05-20 11:15 ` Karel Zak
2013-05-21 13:35   ` Bertrand Jacquin [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=20130521133523.GB3078@lady-voodoo.exosec.local \
    --to=beber@meleeweb.net \
    --cc=kzak@redhat.com \
    --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