[dm-devel] [PATCH] kpartx: compare image filenames with backing files

Julian Andres Klode julian.klode at canonical.com
Fri Jul 27 01:53:19 UTC 2018


On Mon, Jul 16, 2018 at 03:52:13PM +0300, Yuval Turgeman wrote:
> When running `kpartx -d`, find_loop_by_file tries to compare the image's
> realpath with the output from loopinfo.lo_name, which may hold only the
> basename of the image, making kpartx exit without finding the loopdev
> for the image.
> 
> In case the original comparison fails, this patch will check the image's
> realpath with the loop device's backing_file so that find_loop_by_file
> will return the correct value.

That seems like it does the same as my patch[1] from February, but in a more
sane way. "Good" I did not follow up more on that :) /me will check if it
solves the problem shortly.

[1] https://www.redhat.com/archives/dm-devel/2018-February/msg00019.html


-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en




More information about the dm-devel mailing list