> 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