Disk sync at shutdown and fusefs filesystems
Doug Barton
dougb at FreeBSD.org
Tue Dec 11 12:22:40 PST 2007
On Tue, 11 Dec 2007, Alejandro Pulver wrote:
> Thanks, here is what I've got so far: it seems /dev/fuse[0-9]* devices
> aren't removed after the corresponding filesystem is unmounted (I guess
> they are reused), so instead of listing /dev the list has to be taken
> from 'mount'.
Yeah, I think that's better than using fstab anyway, since this way we get
them all with limited processing. Wish I'd thought of it. :)
> Also there should be a delay between the 'umount' and
> 'kldunload' commands. What do you think about the following
> (replacement for fusefs_stop function)?
I suppose this is mostly a style difference, but I like to avoid all those
subshells if we can. I also think it might be a good idea to wait a second
between unmounts, just to be paranoid. How about:
mount | while read dev d1 mountpoint d2; do
case "$dev" in
/dev/fuse[0-9]*) umount $mountpoint ; sleep 1 ;;
esac
done
sleep 1
> kldunload $kmod
hth,
Doug
--
This .signature sanitized for your protection
More information about the freebsd-hackers
mailing list