Bug#829496: kpartx -d ( detach ) option silently fails
Emmanuel Kasper
emmanuel at libera.cc
Sun Jul 3 20:49:18 UTC 2016
Package: kpartx
Version: 0.6.1-3
Severity: normal
Hi
Since the 0.6.1-* version of kpartx, the '-d' option does not work anymore.
Simple test case:
# add loopdevice and partition mappings, freedos.raw is here a disk image
kpartx -av freedos.raw
add map loop0p1 (253:0): 0 262017 linear 7:0 63
# ask kpartx to detach the loop device
kpartx -d freedos.raw
# but the loop device is still there
file --special-files --dereference /dev/loop0
/dev/loop0: DOS/MBR boot sector; partition 1 : ID=0xe, active, start-CHS (0x0,1,1), end-CHS (0x13,15,63), startsector 63, 262017 sectors
losetup --list
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO
/dev/loop0 0 0 0 0 /home/manu/Projects/emul/i386/kvm/freedos.raw
fortunately it is possible to detach manually the loop device with losetup --detach /dev/loop0
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.5.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages kpartx depends on:
ii dmsetup 2:1.02.124-1
ii libc6 2.22-11
ii libdevmapper1.02.1 2:1.02.124-1
ii udev 230-2
kpartx recommends no packages.
kpartx suggests no packages.
-- no debconf information
More information about the pkg-lvm-maintainers
mailing list