From: Milan Broz <mbroz@redhat.com>
To: Bai Shuwei <baishuwei@gmail.com>
Cc: linux-crypto@vger.kernel.org
Subject: Re: device-mapper: remove ioctl failed: device or resource busy
Date: Sat, 06 Feb 2010 21:13:12 +0100 [thread overview]
Message-ID: <4B6DCD58.5010102@redhat.com> (raw)
In-Reply-To: <f3566d61002051932n4f2a30cx4e4f0e962af25a37@mail.gmail.com>
On 02/06/2010 04:32 AM, Bai Shuwei wrote:
> I port the xts-aes algorithm to FPGA board and use it to
> encrypt/decrypt the disc. i will get the bellow information
>
> But when excute the bellow commands
> cryptsetup luksFormat -c aes-xts-plain -s 256 /dev/loop0
> or
> cryptsetup luksOpen /dev/loop0 test0
>
> I get the bellow information
> ....
> device-mapper: remove ioctl failed: device or resource busy
Probably some udev rule triggers scan on temporary keyslot device.
This is known problem with some badly written udev rules and old versions
of DevKit-disks (recent version should not touch these internal devices at all).
Use cryptsetup 1.1.0 and run it with --debug to get more info, also see syslog (there
will be exact information which device was busy, I expect temp-cryptsetup*...)
(It will retry after 1 sec anyway, so it usually works - see that debug log.)
This is not kernel problem at all, just userspace race between some asynchronous
device scan triggered from udev (usually blkid check) and cryptsetup.
Milan
prev parent reply other threads:[~2010-02-06 20:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-06 3:32 device-mapper: remove ioctl failed: device or resource busy Bai Shuwei
2010-02-06 20:13 ` Milan Broz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B6DCD58.5010102@redhat.com \
--to=mbroz@redhat.com \
--cc=baishuwei@gmail.com \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).