Re: [PATCH] kpartx: compare image filenames with backing files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux