public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* block till hotplug is done?
@ 2004-10-05 19:52 Andreas Jellinghaus
  2004-10-05 20:13 ` Harald Dunkel
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andreas Jellinghaus @ 2004-10-05 19:52 UTC (permalink / raw)
  To: linux-kernel

Hi,

is there any way to block till all hotplug events are handled/
the hotplug processes terminated?

For example
	fdisk
	mkfs
fails, because after fdisk create a partition, and the kernel
reread the partition table, called hotplug, hotplug called udev
and udev created the matching /dev file, all of that might be
too slow and mkfs might fail in the mean time.

even
	fdisk
	sleep 2
	mkfs
sometimes failes with machines I'm installing.

so I can either randomly increase the delay everytime the installation
fails because the device isn't created in time, or I can create the
devices myself with mkdev, which defeats the whole purpose of hotplug
and udev. Or - preferable - I would want to wait till something
tells me the device is there. some way to sleep till not kernel
triggered hotlug process is running any more, that would be nice.
does the kernel keep track of it's hotplug processes? is there such
a way to wait till they are all done? 

(and would that work, if hotplug spawned some child process/daemon, i.e.
not wait for the daemon to end?)

Regards, Andreas


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

end of thread, other threads:[~2004-10-08 14:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-05 19:52 block till hotplug is done? Andreas Jellinghaus
2004-10-05 20:13 ` Harald Dunkel
2004-10-05 20:38   ` Valdis.Kletnieks
2004-10-05 22:16     ` Jon Masters
2004-10-05 22:04   ` Andreas Jellinghaus
2004-10-06 14:19 ` Alexander E. Patrakov
2004-10-08 14:23 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox