Re: losetup on a image file containing (GPT) partition doesn't create partition devices

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

 



> From: Francis Moreau <francis.moro@xxxxxxxxx>

> Ok, so IMHO I think that losetup(8) should issue its own
> ioctl(BLKRRPART) and shouldn't rely on the kernel during the loop setup
> since it can fail silently. This way it can check the return value of
> ioctl() and moght choose to do it again in case the return value is -EBUSY.
> 
> Or indicates in the man page that the -P can fail silently.

It's not clear to me why the kernel would be expected to check itself
for partitions in this manner.  If losetup does not get the -P option,
it seems like the kernel should not check.

In any case, it seems like a good idea to make sure that either the
kernel does things reliably, or losetup ensures that it happens
reliably.

Dale
--
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