Bug#829496: kpartx -d ( detach ) option silently fails
Ritesh Raj Sarraf
rrs at debian.org
Mon Jul 4 10:33:48 UTC 2016
Control: tag -1 +confirmed
Control: severity -1 important
Thank you for the bug report Emmanuel. I have been able to reproduce it in my
setup and will work on it in some time. Meanwhile, in case you find a root
cause, please do share it on this bug report.
Thanks,
Ritesh
On Sun, 2016-07-03 at 22:49 +0200, Emmanuel Kasper wrote:
> 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
>
--
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20160704/8522eeba/attachment-0001.sig>
More information about the pkg-lvm-maintainers
mailing list