Messages in this thread | | | Subject | Re: [PATCH 4/4] loop: Add LOOP_SET_FD_AND_STATUS ioctl. | From | Bart Van Assche <> | Date | Wed, 22 Apr 2020 08:10:56 -0700 |
| |
On 4/20/20 1:04 AM, Martijn Coenen wrote: > diff --git a/include/uapi/linux/loop.h b/include/uapi/linux/loop.h > index 080a8df134ef..fcc9a693b588 100644 > --- a/include/uapi/linux/loop.h > +++ b/include/uapi/linux/loop.h > @@ -60,6 +60,11 @@ struct loop_info64 { > __u64 lo_init[2]; > }; > > +struct loop_fd_and_status { > + struct loop_info64 info; > + __u32 fd; > +}; > + > /* > * Loop filter types > */ > @@ -90,6 +95,7 @@ struct loop_info64 { > #define LOOP_SET_CAPACITY 0x4C07 > #define LOOP_SET_DIRECT_IO 0x4C08 > #define LOOP_SET_BLOCK_SIZE 0x4C09 > +#define LOOP_SET_FD_AND_STATUS 0x4C0A > > /* /dev/loop-control interface */ > #define LOOP_CTL_ADD 0x4C80
Should linux-api be Cc'ed for this patch or the entire patch series? From https://www.kernel.org/doc/man-pages/linux-api-ml.html: "Among other things, a primary goal of the list is to help answer the question: How do we even know when an interface has been added or changed?".
Thanks,
Bart.
| |