Re: udev is too slow creating devices

From: Benjamin Herrenschmidt
Date: Sun Sep 19 2004 - 19:06:44 EST


On Mon, 2004-09-20 at 00:25, Ihar 'Philips' Filipau wrote:

> Well, can then anyone explain by which mean (black magic?) kernel
> mounts root file system? block device might appear any time, file system
> might take ages to load.
>
> Hu? How is init/do_mounts.c still works then? Or it is needs to be
> fixed with messages a-la "root file system will be available shortly, we
> do hope" and "please plug in again your hard-wired IDE drive"?

Mounting of the root device is a fragile process that happens to work
by chance on current setups, but there is a reason while distributions
are now moving to a model where an initrd/initramfs is loaded as the
root device first, which then can do the proper selection of a real
root device, eventually waiting for one to show up, and then pivot to
it. The kernel "built-in" root selection already fails most of the
time with usb-storage or sbp2 (ieee1394)

> People, you must learn doing abstractions carefully. If device is
> hard-wired - user *will* expect (as kernel itself does) that it is
> available all the time after modprobe'ing driver.

Arrogance will lead you nowhere here, so step down from your pedestal
and try accepting that your view on things might not be the right one.

Ben.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/