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

Jonas Meurer jonas at freesources.org
Sat Jul 10 11:31:43 UTC 2010


reassign 586286 hal
thanks

On 10/07/2010 Γιώργος Πάλλας wrote:
> On 07/09/2010 03:26 PM, Jonas Meurer wrote:
> > 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.
> 
> Indeed, with hal stopped, the issue disappears:

So this is a bug in hal. Thus reassigning the bugreport to package hal.

It seems like hal properly ignored /dev/mapper/cryptsetup-temporary-*
devices, but still probes /dev/dm-X devices which are temporary
cryptsetup devices. That needs to be fixed. As Milan already pointed out
in an earlier mail, a proper fix (for recent kernels) would be to read
/sys/block/dm-X/dm/name in hald/linux/osspec.c, check whether that
translates to 'cryptsetup-temporary-*', and ignore the device in that
case as well.

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/20100710/d77e37b5/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list