[Bug 1543430] Re: kpartx 0.5.0-7ubuntu11 fails to remove loop mapping on kpartx -d

Mathieu Trudel-Lapierre mathieu.tl at gmail.com
Tue Feb 9 14:20:52 UTC 2016


Ugh, yeah, I see now that the patch fixing dealing with loopbacks at all
"regresses" in a way, but not dealing correctly with the loop entries
even though it appears to deal with the devmapper table just fine.

I'm looking at it right now, it's not pretty. There are basically two
ways I can think of to deal with this. Either relying more on
loopdev/device than S_ISREG on the buf that describes the file opened
(we needed to stat the loopback device after picking it, otherwise no
major/minor numbers to do the partition mappings), or hacking
buf.st_mode to convince kpartx we're still dealing with a regular file.

I'm trying to see what might break if we just use loopdev or device
everywhere. I will upload as soon as I'm reasonably confident this does
not further break things, and I'll adjust the autopkgtest accordingly.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1543430

Title:
  kpartx 0.5.0-7ubuntu11 fails to remove loop mapping on kpartx -d

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1543430/+subscriptions



More information about the Ubuntu-server-bugs mailing list