Bug 48637

Summary: colord somehow seems to keep /dev/mapper/foo busy
Product: colord Reporter: Colin Guthrie <colin>
Component: daemonAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Colin Guthrie 2012-04-13 01:57:22 UTC
This problem comes from a downstream bug report:

https://bugs.mageia.org/show_bug.cgi?id=5337


Basically the problem is that the user in question as an encrypted partition which he unlocks during his user login. If the partition is unlocked when colord starts, the fact that colord is running actually prevents him from running luksClose with a "Device or Resource Busy" (note that the encrypted drive is already unmounted by this stage, it's purely the "tidying up" of the encrypted volume that's failing).

Killing colord allows the operation to succeed.

Note this only happens if colord is started *after* the partition is unlocked (i.e. dbus activated by the user login). If it's started earlier (either manually or by a different (i.e. test) user logging in first before the encrypted partition is unlocked) then there is no problem.


Now I'm pretty certainly that colord itself is not playing with /dev/mapper/* or /dev/dm* stuff, but perhaps it's doing something that could interfere somehow? I don't know, maybe inotify stuff that somehow misbehaves or some external library that is doing weird things? Figured you'd be the best person to ask for advice at the very least! I did have a quick scan through the code, but nothing jumped out at me.

Note that cupsd also seems to be doing similar things, so this could have the same root cause, or simply have similar problems.
Comment 1 David W. Hodgins 2012-04-15 15:31:14 UTC
Seems to have been fixed by the latest update to util-linux.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.