Re: [dm-devel] [PATCH] kpartx: free loop device after listing partitions

2021-03-12 Thread Martin Wilck
On Wed, 2021-02-24 at 00:05 -0600, Benjamin Marzinski wrote: > If "kpartx -l" is run on a file that doesn't already have a loop > device > associated with it, it will create a loop device to run the command. > Starting with da59d15c6 ("Fix loopback file with kpartx -av"), it > will > not free the l

[dm-devel] [PATCH] kpartx: free loop device after listing partitions

2021-02-23 Thread Benjamin Marzinski
If "kpartx -l" is run on a file that doesn't already have a loop device associated with it, it will create a loop device to run the command. Starting with da59d15c6 ("Fix loopback file with kpartx -av"), it will not free the loop device when exitting. This is because it checks if the the file it st