umount -f implementation

Rick Macklem rmacklem at uoguelph.ca
Wed Jul 1 17:27:25 UTC 2009



On Wed, 1 Jul 2009, Julian H. Stacey wrote:

> Kirk McKusick wrote:
>> forced unmounts. The gentle force (-f) and the brute force (-F)
>> unmount.
>
> -F Would also be nice for devd.conf detach, for when people
> forget & pull a USB stick without unmounting first.
> Better a corrupt stick than a crashed OS.
>
All I'll add is, for the experimental nfs client, if both semantics are 
desired (and, imho they are), there will need to be separate flags to 
indicate whether or not to terminate RPCs in progress.

So, it seems that there is interest in a separate "umount -F" to handle
the case of failed storage (disk subsystem, NAS server down,...).
Is there anyone who is opposed to my pursuing this after FreeBSD-CURRENT
branches from 8? (I can do the experimental nfs client + some testing.
Hopefully others can help with the generic VFS issues and other file
systems.)

rick, who obviously doesn't have as good a memory as Kirk's:-)
ps: Unfortunately Solaris uses "-F" for something entirely different, so
     feel free to suggest other flag values if you think that is a concern.



More information about the freebsd-fs mailing list