Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2007 12:22:35 -0800 (PST)
From:      Doug Barton <dougb@FreeBSD.org>
To:        Alejandro Pulver <alepulver@FreeBSD.org>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: Disk sync at shutdown and fusefs filesystems
Message-ID:  <alpine.BSF.0.999999.0712111219070.97221@ync.qbhto.arg>
In-Reply-To: <20071211120211.133bdc3f@deimos.mars.bsd>
References:  <20071211001828.54e1da6b@deimos.mars.bsd> <475E0F92.3040804@FreeBSD.org> <20071211120211.133bdc3f@deimos.mars.bsd>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.0.999999.0712111219070.97221>