All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] 1.1.0rc2: device-mapper: remove ioctl failed: Device or resource busy
@ 2009-10-20  8:35 Thomas Bächler
  2009-10-20  8:55 ` Milan Broz
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas Bächler @ 2009-10-20  8:35 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]

Okay, this report has a long story. I had reports of cryptsetup 1.0.7
failing to work after updates (I later found out that the cause was
installing devicekit). I advised the affected people to try the 1.1.0
release candidate to get better debug output - but the bug was gone with
1.1.0. But something else happened with 1.1.0: On every opened LUKS
volume, the message

device-mapper: remove ioctl failed: Device or resource busy

would appear (see http://bugs.archlinux.org/task/16735#comment51508).

Then I suggested adding the following udev rule (which I will probably
make the default):

ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="dm-[0-9]*",
PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M
-m %m", RESULT=="temporary-cryptsetup-*", OPTIONS="last_rule"

(btw, is there a better way than calling dmsetup to get the name here?).
Now, this fixes the problem with 1.0.7, as it prevents devicekit from
blocking access to the device, but the above error message isn't gone in
1.1.0: http://bugs.archlinux.org/task/16735#comment51536

What is this remove error caused by, if not by some application being
called from udev blocking access? Note that there are no
temporary-cryptsetup-* volumes left after luksOpen.

Ideas welcome :)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [dm-crypt] 1.1.0rc2: device-mapper: remove ioctl failed: Device or resource busy
@ 2009-10-20  7:29 Thomas Bächler
  0 siblings, 0 replies; 13+ messages in thread
From: Thomas Bächler @ 2009-10-20  7:29 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]

Okay, this report has a long story. I had reports of cryptsetup 1.0.7 
failing to work after updates (I later found out that the cause was 
installing devicekit). I advised the affected people to try the 1.1.0 
release candidate to get better debug output - but the bug was gone with 
1.1.0. But something else happened with 1.1.0: On every opened LUKS 
volume, the message

device-mapper: remove ioctl failed: Device or resource busy

would appear (see http://bugs.archlinux.org/task/16735#comment51508).

Then I suggested adding the following udev rule (which I will probably 
make the default):

ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="dm-[0-9]*", 
PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M 
-m %m", RESULT=="temporary-cryptsetup-*", OPTIONS="last_rule"

(btw, is there a better way than calling dmsetup to get the name here?). 
Now, this fixes the problem with 1.0.7, as it prevents devicekit from 
blocking access to the device, but the above error message isn't gone in 
1.1.0: http://bugs.archlinux.org/task/16735#comment51536

What is this remove error caused by, if not by some application being 
called from udev blocking access? Note that there are no 
temporary-cryptsetup-* volumes left after luksOpen.

Ideas welcome :)
Please CC me on replies.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-10-23 13:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-20  8:35 [dm-crypt] 1.1.0rc2: device-mapper: remove ioctl failed: Device or resource busy Thomas Bächler
2009-10-20  8:55 ` Milan Broz
2009-10-20  9:07   ` Thomas Bächler
     [not found]   ` <4ADD9876.8000006@redhat.com>
2009-10-20 12:13     ` Thomas Bächler
2009-10-20 12:53       ` Peter Rajnoha
2009-10-20 13:05         ` Thomas Bächler
2009-10-20 13:29           ` Peter Rajnoha
2009-10-22 13:36       ` Peter Rajnoha
2009-10-22 15:01         ` Thomas Bächler
2009-10-22 15:31           ` Peter Rajnoha
2009-10-23 13:41             ` Uwe Menges
2009-10-23 13:57               ` Milan Broz
  -- strict thread matches above, loose matches on Subject: below --
2009-10-20  7:29 Thomas Bächler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.