Your message dated Sat, 04 Apr 2015 01:16:51 +0530
with message-id <[email protected]>
and subject line Re: Bug#781788: (no subject)
has caused the Debian Bug report #781788,
regarding kpartx: unmaps incorrect devices
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
781788: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781788
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kpartx
Version: 0.5.0-5
Severity: normal
Items loop0p1 and nbd0p1 existing in /dev/mapper, when issuing kpartx -d
/dev/nbd0, loop0p1 disappears
Expected result is the command should only remove nbd0 mappings and not
loop0p1
..
There's generally three ways I make mappings with kpartx when working
with raw image files.
[attaching]
1- Use qemu-nbd, then apply kpartx on an /dev/nbdN device
2- Use losetup on a raw image, then apply kpartx on an /dev/loopN device
3- Use kpartx directly on a raw image file
There's a related concern if "kpart -d <>" should perform losetup after
creating a mapping in 3- situation.
I've noticed the following when applying kpartx -d for each of the above
scenarios
[detaching]
1- qemu-nbd -d /dev/nbdN would need to applied to fully remove the
mapping (normal)
2- losetup -d /dev/loopN would need to be applied to fully remove the
mapping (normal)
3- kpartx -d fully removes /dev/loopN and any /dev/mapper/loopNpM
entries, so losetup -d is not needed
..
If testing this, in the way I set things up is as follows,
Use losetup on a raw image file containing a partition table
Use qemu-nbd on a separate image with a partition table
Issue kpartx -a /dev/nbd0
followed by kpartx -a /dev/loop0
Verify there are entries in /dev/mapper (nbd0pN, loop0pN ...)
Now issue kpartx -d /dev/nbd0, and notice /dev/mapper/loop0pN entries
would also be removed(which shouldn't)
thanks
--- End Message ---
--- Begin Message ---
On Friday 03 April 2015 08:27 PM, westlake wrote:
> Problem doesn't seem to replicate, it must have occured by some
> condition I wouldn't know about.
>
> Feel free to look into it, if you can't replicate this then it is good
> to close this.
THen I'm gonna mark it as closed. If it happens again, just re-open the
bug report
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
signature.asc
Description: OpenPGP digital signature
--- End Message ---