Subject: Re: /sbin/umount should support umount_* (PR#698)
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Gary Duzan <gary@duzan.org>
List: current-users
Date: 02/26/2003 19:48:06
In Message <20030226215525.GA13023@yeah-baby.shagadelic.org> ,
   Jason R Thorpe <thorpej@wasabisystems.com> wrote:

=>On Wed, Feb 26, 2003 at 01:51:48PM -0800, Simon Gerraty wrote:
=>
=> > >Perhaps it makes sense to put a PID in the "mount arguments" handed to
=> > >the kernel, and have umount(8) check that.  This could be useful for
=> > >shutting down some other types of file systems as well (AFS and some
=> > >FTP translators come to mind).
=> > 
=> > Yes, that would probably do the trick - send it a SIGTERM and you're
=> > done.
=>
=>Err, how does LFS do it?  It has to kill lfs_cleanerd when the file system
=>is unmounted, right?

   If I'm reading this right, lfs_cleanerd simply gets an error
from fstatfs the next time it tries to access the ifile and quits:

##########################################################################
Feb 26 19:40:42 capo lfs_cleanerd[112]: reread_fs_info: fstatfs failed (Bad file descriptor)
Feb 26 19:40:42 capo lfs_cleanerd[110]: lfs_cleanerd: fs /usr2 unmounted, exiting
##########################################################################

   Not exactly the general-purpose mechanism you are looking for...

					Gary Duzan