[Pkg-cryptsetup-devel] Bug#406697: Bug #406697 - Device nodes are not removed when devices are brought down

David Härdeman david at hardeman.nu
Sun Jan 14 02:27:07 CET 2007


I wouldn't consider this a cryptsetup bug.

udev currently receives uevents from the kernel when a new device-mapper 
device mapping is created and creates a /dev/dm-* node. libdevmapper 
knows when devices are created/removed and creates the /dev/mapper/* 
nodes.

However, the kernel will not (AFAIK) send uevents when device-mapper 
mappings are renamed, changed or removed, so udev is not able to remove 
the devices when appropriate.

So the "fix" would be to add support for those uevents to the kernel 
and to change udev to act on them. Ideally it would create the /dev/dm-* 
devices and symlinks in /dev/mapper/*. 

Once that is in place, node creation can be removed from libdevmapper 
(meaning it will have to wait for the nodes to magically appear 
instead).

There is a writeup on this with some more details at:
https://wiki.ubuntu.com/UdevDeviceMapper

However, I can't see that anything needs to be done in cryptsetup 
(except making sure that all works when/if this behaviour is changed in 
libdevmapper).

-- 
David Härdeman




More information about the Pkg-cryptsetup-devel mailing list