On Sat, Sep 06, 2003 at 05:06:24PM +0300, Shachar Shemesh wrote:
> However, many of the devices on my system were set to be autoloaded when 
> needed. I'm using debian's wonderful /etc/modutils/ directory to set up 
> aliases so that when a device is first accessed, the corresponding 
> kernel module will be loaded. I do not see how to translate this idea 
> into devfs, however.
> 
> It appears that with devfs, the device won't be there to be opened until 
> the module is loaded, and therefor simply accessing, for example, 
> /dev/cdrom/cdrom1 will result in "file not found", rather than trying to 
> open the device, and thus triggering loading of ide-scsi.

In devfs, trying to access a device which doesn't exist in the
directory (by blindly opening it) will cause the kernel to notify
the 'devfsd' user-space daemon of a LOOKUP event.

In /etc/devfs/devfsd.conf, you have:

LOOKUP          .*              MODLOAD

This configuration directive will cause devfsd to run "modprobe
DEVICE_PATH" for any non-existant device path.

Your /etc/modules.conf file should contain (and on Debian, would
contain) mappings such as:

alias /dev/loop* loop

so that devfsd could run "modprobe /dev/loop/0".

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to