linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Harald Hoyer <harald@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev 145, when are events fully processed?
Date: Fri, 07 Aug 2009 12:26:19 +0000	[thread overview]
Message-ID: <4A7C1D6B.8040308@redhat.com> (raw)
In-Reply-To: <4A749D9E.3020709@lbsd.net>

On 08/01/2009 09:55 PM, Nigel Kukard wrote:
> Hi Guys,
>
> Trying to figure something out here, using the following I'm seeing a
> delay in the creation of block devices in /dev ...
>
> # trigger the sorted events
> echo -e '\000\000\000\000'>  /proc/sys/kernel/hotplug
>
> rm -fr /dev/.udev>  /dev/null 2>&1
> mkdir -p /dev/.udev>  /dev/null 2>&1
> /sbin/udevd
>
> # Not entirely sure what this is for
> /sbin/udevadm control --env=STARTUP=1
> /sbin/udevadm trigger

> /sbin/udevadm settle

settle should have waited until all events have been processed

> # Nor sure what this does
> /sbin/udevadm control --env=STARTUP>
>
> I think my problem is, while all the events have been sent to udevd
> there is a delay if I do a  "fsck LABEL=root" straight on say the next
> line,  a "ls" shows that none of the block devices exist until a second
> or two later. A sleep 5 before my "ls" works around this and the block
> devices show up.
>
> Any ideas how I can determine once all udev events have finished
> processing so I can continue boot?

check would look like:
/sbin/udevadm settle --timeout=0 || echo "Still not all udev events processed"

waiting should be:
/sbin/udevadm settle

>
>
> Kind Regards
> Nigel
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2009-08-07 12:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-01 19:55 udev 145, when are events fully processed? Nigel Kukard
2009-08-07 12:26 ` Harald Hoyer [this message]
2009-08-07 12:56 ` Nigel Kukard
2009-08-07 14:15 ` Alan Jenkins
2009-08-07 14:48 ` Nigel Kukard
2009-08-07 15:34 ` Kay Sievers
2009-08-07 16:00 ` Alan Jenkins
2009-08-07 16:10 ` Nigel Kukard
2009-08-07 16:24 ` Kay Sievers
2009-08-07 16:40 ` Nigel Kukard

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=4A7C1D6B.8040308@redhat.com \
    --to=harald@redhat.com \
    --cc=linux-hotplug@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).