All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Bächler" <thomas@archlinux.org>
To: Milan Broz <mbroz@redhat.com>
Cc: dm-crypt@saout.de, Ali Reza Sajedi <arsajedi@khanehjou.com>
Subject: Re: [dm-crypt] Long Unlocking Time
Date: Thu, 25 Mar 2010 18:10:08 +0100	[thread overview]
Message-ID: <4BAB98F0.403@archlinux.org> (raw)
In-Reply-To: <4BAB8DCC.6090507@redhat.com>

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

Am 25.03.2010 17:22, schrieb Milan Broz:
> I later version is this removed, BUT:
> If you are using device-mapper with udev enabled, its need to synchronise
> device node creation, which happens from the last dm udev-rule, but you are blocked
> in rule before -> deadlock -> timeout (maybe).

Does cryptsetup even use this synchronization feature?

> Best do not do these operations from udev rule at all.
> 
> Maybe if it fork itself, it can work somehow. Anyway it is probably better
> to not add such commands directly to udev rule, but in some other system
> which registers for udev events (using some d-bus message or whatever).
> 
> Someone probably can suggest better desktop solution...

One does not always want to rely on a desktop-based solution.

It should be possible to run a command that immediately daemonizes and
returns success. In fact, udev should probably implement a RUNAFTER
directive that does exactly that and can be used instead of the RUN
directive.
In my opinion, udev is the right place for such tasks, unless you want
to use or even write a daemon that listens for events using libudev -
which is overkill for such an easy task.


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

  reply	other threads:[~2010-03-25 17:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25 15:56 [dm-crypt] Long Unlocking Time Ali Reza Sajedi
2010-03-25 16:10 ` Bryan Kadzban
2010-03-25 16:22 ` Milan Broz
2010-03-25 17:10   ` Thomas Bächler [this message]
2010-03-25 17:28     ` Milan Broz
2010-03-25 20:25       ` Ali Reza Sajedi
2010-03-25 21:45       ` Ali Reza Sajedi
2010-03-27 11:09         ` [dm-crypt] Change Language Ali Reza Sajedi
2010-03-27 11:45           ` Sven Eschenberg
2010-03-29 20:47             ` Ali Reza Sajedi
2010-03-25 17:56   ` [dm-crypt] Long Unlocking Time Sven Eschenberg

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=4BAB98F0.403@archlinux.org \
    --to=thomas@archlinux.org \
    --cc=arsajedi@khanehjou.com \
    --cc=dm-crypt@saout.de \
    --cc=mbroz@redhat.com \
    /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 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.