Re: sfdisk, re-eading partition table fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 15 December 2015, Ruediger Meier wrote:
> On Tuesday 15 December 2015, Karel Zak wrote:
> > On Mon, Dec 14, 2015 at 01:11:59PM +0100, Ruediger Meier wrote:

> > > Removing the first BLKRRPART ioctl (or sleeping about 50ms after
> > > the first one) "fixes" the issue.
> >
> > The is_device_used() in the sfdisk is nothing elegant,
>
> But how else could we check whether a device is in use?
>
> > maybe
> > we can use --noreread sfdisk command line option in the tests.
>
> I have such patch already for testing.

It's now on github pull request #244 among other patches
https://github.com/karelzak/util-linux/pull/244

Would be still nice to fix the problem within sfdisk somehow.

BTW I found that is_device_used() is not called for other generic 
options like --reorder. This seems inconsistent.

cu,
Rudi
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux