[Pkg-cryptsetup-devel] Bug#406697: Bug #406697 - Device nodes are
not removed when devices are brought down
Frans Pop
elendil at planet.nl
Wed Jan 17 00:47:39 CET 2007
On Sunday 14 January 2007 02:27, David Härdeman wrote:
> 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.
According to Marco d'Itri the /dev/md-* node _is_ removed if the command
'cryptsetup remove $NAME"' is used to bring down a crypto volume (I've not
tested this myself).
But looking at do_stop() in /lib/cryptsetup/cryptdisks.functions, the only
thing cryptsetup seems to do on shutdown is:
'losetup -d /dev/loop$minor'
So, maybe this is a cryptsetup issue after all?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20070117/589cf34a/attachment.pgp
More information about the Pkg-cryptsetup-devel
mailing list