Bug#591977: kpartx: udev autostart + strict matching for removal == bad idea

me at perso.beuc.net me at perso.beuc.net
Fri Aug 6 18:59:28 UTC 2010


Package: kpartx
Version: 0.4.8+git0.761c66f-9
Severity: important

When using 'kpartx -d', one has to provide the exact same filename than used for addition (no symlinks, same relative path, etc.).
In addition, kpartx installs files in /etc/udev to automatically map some devices.
Consequently, when I had a disk image in LVM, and wish to remove it, the disk image is considered in use, and I don't know any way to remove the device mapping.

Typically dm-7:
# ll /dev/mapper/
total 0
crw------- 1 root root 10, 59  3 août  20:01 control
[...]
lrwxrwxrwx 1 root root      7  6 août  20:40 VG0-test1--boot -> ../dm-6
lrwxrwxrwx 1 root root      7  6 août  20:39 VG0-test1--bootp1 -> ../dm-7
lrwxrwxrwx 1 root root      7  6 août  20:31 VG0-test1--root -> ../dm-5

I would suggest either making kpartx less strict wrt matching disk image paths (e.g. symlinks support, like mount), or place the udev rules in doc/examples instead of enabling them by default.

(well, I suppose that kpartx is the culprit, the 'bootp1' files is added as soon as I add a partition with 'parted')

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (300, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kpartx depends on:
ii  dmsetup                      2:1.02.48-2 The Linux Kernel Device Mapper use
ii  libc6                        2.11.2-2    Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.48-2 The Linux Kernel Device Mapper use
ii  udev                         158-1       /dev/ and hotplug management daemo

kpartx recommends no packages.

kpartx suggests no packages.

-- no debconf information





More information about the pkg-lvm-maintainers mailing list