Skip to contentSkip to conversation

waiting needed for udev?

DISCUSSION Andreas Jellinghaus 1 participant 1 message Jun 22, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I wonder: is it necessary to wait for the kernel
to do the hotplugging / device creation via udev?

example:
a machine has blank disks, no partition.
so udevstart will only create /dev/hda

now that machine is installed via script, with (echo ... ; echo ... ; echo ... ) | sfdisk /dev/hda mkfs.ext3 /dev/hda3

sfdisk creates the partition and makes th kernel reread the partition table. that should triggger hotplugging for the new partition devices. will the kernel block sfdisk till the hotplug events are generated and udev has finished? or is there a risk of mkfs claiming "no such file or device" because the hotplug/udev created /dev/hda3 a few microseconds too late?

thanks for your help.

Regards, Andreas

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel