Re: [PATCH] loop: Add LOOP_SET_FD_WITH_OFFSET ioctl.

From: Martijn Coenen
Date: Tue Mar 31 2020 - 07:25:57 EST


On Tue, Mar 31, 2020 at 9:48 AM Christoph Hellwig <hch@xxxxxx> wrote:
> I think the full blown set fd an status would seem a lot more useful,
> or even better a LOOP_CTL_ADD variant that sets up everything important
> on the character device so that we avoid the half set up block devices
> entirely.

Thanks for the feedback, I will work on that then. I think I could do
both - LOOP_SET_FD_AND_STATUS and a new variant of LOOP_CTL_ADD that
calls it - the former could still be useful if the kernel pre-created
a large amount of loop devices.

Martijn