Disk sync at shutdown and fusefs filesystems

Karsten Behrmann BearPerson at gmx.net
Tue Dec 11 13:53:37 PST 2007


On Tue, 11 Dec 2007 12:22:35 -0800 (PST), Doug Barton wrote:
> 
> 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

Hmm, if you truly want to be paranoid, you probably should be unmounting
those in reverse order, because someone might be mounting one fuse-fs
inside another ;)

just my 2 cents,
  Karsten

-- 
Open source is not about suing someone who sells your software. It is
about being able to walk behind him, grinning, and waving free CDs with
the equivalent of what he is trying to sell.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20071211/fb6ee677/signature.pgp


More information about the freebsd-hackers mailing list