[pkg-cryptsetup-devel] Bug#586286: Bug#586286: device-mapper: ioctl: unable to remove open device temporary-cryptsetup-3433

Jonas Meurer jonas at freesources.org
Fri Jul 9 12:26:18 UTC 2010


Hey again,

On 09/07/2010 Milan Broz wrote:
> On 07/09/2010 09:41 AM, Γιώργος Πάλλας wrote:
> 
> > # WARNING: other process locked internal device
> > temporary-cryptsetup-18450, retrying remove.
> > # WARNING: Process PID 18473 (hald-probe-volu) [PPID 1711 (hald-runner)]
> > spying on internal device /dev/dm-4.
> 
> Ha! So finally the debug code found something locking the device! :-)
> 
> HAL _must_ _not_ open temporary-cryptsetup device.
> It can scan final device but not the temporary one.
> (udev/udisks have this solved, I thought hal uses the same...)
> 
> Maybe it is not the real problem but please fix hal too here.

I discussed that with the hal maintainer. Hal already has a workaround
to ignore temporary-cryptsetup-* devices (in hald/linux/osspec.c). The
problem here seems to be that hal probes /dev/dm-4, and not the
temporary-cryptsetup device. and the workaround doesn't ignore that one.

so, Giorgos, please temporarily disable hal (/etc/init.d/hal stop), and
see whether the issue disappears. In that case, hal is the problem for
sure.

But then still the problem is, how should hal distinguish temporary
cryptsetup devices reliably, when '/dev/dm-X' is used? Milan, is there
any better/cheaper solution than a lookup for symlinks in /dev/mapper/*?

greetings,
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100709/714d8dff/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list