Re: [PATCH v4 9/9] loop: Add LOOP_CONFIGURE ioctl

2022-12-13 Thread Denys Vlasenko
> +config LOOP_CONFIGURE > + bool "always uses LOOP_CONFIGURE, kernel version >= 5.8" > + > +config NO_LOOP_CONFIGURE > + bool "never uses LOOP_CONFIGURE, kernel version < 5.8" > + > +config TRY_LOOP_CONFIGURE > + bool "try LOOP_CONFIGURE, kernel version is unknown" The

[PATCH v4 9/9] loop: Add LOOP_CONFIGURE ioctl

2022-11-21 Thread Xiaoming Ni
LOOP_CONFIGURE is added to Linux 5.8 This allows userspace to completely setup a loop device with a single ioctl, removing the in-between state where the device can be partially configured - eg the loop device has a backing file associated with it, but is reading from the wrong offset.