svn commit: r222466 - head/sbin/umount

Rick Macklem rmacklem at uoguelph.ca
Mon May 30 19:26:35 UTC 2011


> 
> No doubt. :-)
> 
> If the sync(2) has actual consistency and reliability benefits, it
> should
> probably be done by the umount(2) system call, so that other future
> auto-mounters, etc, also get the same result, rather than having to
> encode it
> in every application. If it's done on blind faith, perhaps it
> shouldn't be
> done at all.
> 
I wouldn't say it's necessary, but if you look at dounmount() in
vfs_mount.c, it does a VFS_SYNC() before VFS_UNMOUNT(). I needed to
fix nfs_sync() for forced dismounts to work because of this.

rick


More information about the svn-src-head mailing list