On Mon, Mar 18, 2013 at 09:05:38AM -0400, Jeff Mahoney wrote: > Yeah, but that's in losetup --set-capacity where it's an explicit > operation. This change will add the ioctl into every > loopdev_setup_device call when the offset or sizelimit options are used. > If it isn't supported by the kernel, the ioctl will fail silently and > *maybe* the mount will fail, but that's totally dependent on the the > file system. If the mount succeeds, it will be done outside of the > parameters the user requested. > > So, all I really want to do is dump an error message when the ioctl > fails with -ENOTTY || -EINVAL about there being a lack of kernel > support. We shouldn't allow the device configuration to proceed. > > The part that makes it more "fun" is that a few patches in 3.9-rc1 fixed > this in the kernel, so it won't actually be needed for new kernels. Nasty... well, send patch. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- 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