Bug#406697: [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 11:02:06 CET 2007
On Wednesday 17 January 2007 10:23, you wrote:
> In "do_stop" there is a call to "do_close" which does "cryptsetup
> remove" or "cryptsetup luksClose" (if the use count of the device is
> 0).
Does _not_ seem to be the case. Here's the entire do_stop function from
/lib/cryptsetup/cryptdisks.functions on my box and I see no calls to
'crytsetup remove' (indentation reduced a bit):
do_stop () {
$DEVMAPCMD mknodes
log_action_begin_msg "Stopping $INITSTATE crypto disks"
egrep -v "^[[:space:]]*(#|$)" $TABFILE | while read dst src key opts; do
if test -b $MAPPER/$dst; then
if $DEVMAPCMD info $dst | grep -q '^Open count: *0$'; then
dev=`$DEVMAPCMD table $dst | sed 's/^.* \([0-9]*:[0-9]*\) .*/\1/'`
major=`echo $dev | sed 's/:.*//'`
minor=`echo $dev | sed 's/.*://'`
log_progress_msg "$dst(stopping)"
do_close
# Detach loopback device, if attached
if test -f $src -a $major -eq 7; then
$LOSETUP -d /dev/loop$minor
fi
else
log_progress_msg "$dst(busy)"
fi
else
log_progress_msg "$dst(stopped)"
fi
done
log_action_end_msg 0
}
Note that I am running testing (cryptsetup 1.0.4-8). Is this one of the
things fixed in the version waiting in unstable for the alpha buildd?
I see nothing in the changelog to indicate that (at a quick glance).
-------------- 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/ef87c304/attachment.pgp
More information about the Pkg-cryptsetup-devel
mailing list