Add a gsched rc file to automatically insert gsched on top of a storage device(s). The rc file inserts the scheduler on startup and removes the scheduler on shutdown. It could also be integrated into devd. I have used this without incident with the following in my rc.conf: gsched_enable="YES" gsched_devs="ad4 ad8" There are two issues when using the following for devd: notify 100 { match "system" "DEVFS"; match "subsystem" "CDEV"; match "type" "CREATE"; match "cdev" "(ad|ada|cd|da)[0-9]+"; action "/etc/rc.d/gsched start $cdev"; }; 1) a scheduler insert is attempted twice on startup (devd appears to run the script when it is first run) 2) using the above to insert a scheduler on a memory stick causes KDE (via hal, I assume) to loose the labels. Fix: Patch attached with submission follows:
Responsible Changed From-To: freebsd-bugs->freebsd-rc Over to maintainer(s).
No interest in this change (no obvious benefit)