Re: [Pcbsd-developer] removage storage unmounting (devd.conf)
Status: Beta
Brought to you by:
kmoore134
|
From: Andrei K. <an...@bs...> - 2006-08-25 08:02:10
|
On Friday 25 August 2006 8:18 am, Federico Lorenzi wrote:
> On Thursday 24 August 2006 23:15, Andrei Kolu wrote:
> > I found this interesting feature for /etc/devd.conf:
> > -------------------------------------------------------------
> > attach 0 {
> > device-name "umass0";
> > action "sleep 2 && test -c /dev/da0s1 && /sbin/mount_msdosfs -m
> > 777 /dev/da0s1 /mnt/flash";
> > };
> > detach 0 {
> > device-name "umass0";
> > action "umount -f /mnt/flash";
>
> Just one problem... ATM we cant unmount a device after it has been taken
> out, as it can cause file loss and the like. And if you do, you are left
> with the entry still in /dev... Maybe a good thing to find out is if there
> is a way to disable WB-caching for certain disks?
>
devd.conf is working on hardware level, this is not a plain script here.
detach 0 command is exactly the way to prevent crashing if some device is
removed.
|