Re: [PATCH v2] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE

2020-08-11 Thread Jens Axboe
On 8/11/20 12:49 AM, Martijn Coenen wrote: > On Mon, Aug 10, 2020 at 7:16 PM Lennart Poettering > wrote: >> >> When LOOP_CONFIGURE is used with LO_FLAGS_PARTSCAN we need to propagate >> this into the GENHD_FL_NO_PART_SCAN. LOOP_SETSTATUS does this, >> LOOP_CONFIGURE doesn't so far. Effect is that

Re: [PATCH v2] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE

2020-08-10 Thread Martijn Coenen
On Mon, Aug 10, 2020 at 7:16 PM Lennart Poettering wrote: > > When LOOP_CONFIGURE is used with LO_FLAGS_PARTSCAN we need to propagate > this into the GENHD_FL_NO_PART_SCAN. LOOP_SETSTATUS does this, > LOOP_CONFIGURE doesn't so far. Effect is that setting up a loopback > device with partition scann

[PATCH v2] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE

2020-08-10 Thread Lennart Poettering
When LOOP_CONFIGURE is used with LO_FLAGS_PARTSCAN we need to propagate this into the GENHD_FL_NO_PART_SCAN. LOOP_SETSTATUS does this, LOOP_CONFIGURE doesn't so far. Effect is that setting up a loopback device with partition scanning doesn't actually work when LOOP_CONFIGURE is issued, though it wo