"H. Peter Anvin" wrote:
> 
> "Christopher W. Curtis" wrote:
> > >
> > > Not a chance in hell.  Putting it in the VFS would slow down *every
> > > access*, even to non-removable devices.
> >
> > I'm no expert, but are you sure about this?  The VFS reports "disk
> > changed" into syslog - this would be as good a time as ever to flush the
> > buffer cache for that device, would it not?
> >
> 
> How do you flush a busy buffer?

Hm.  You ask because the mount is still valid, therefore the buffer is
still busy.  If so, then yes, ok.  It can't be flushed.

If my usage of the term 'flush' is confusing (or wrong), 'discard' is
what it should really do.

I assume that notifying the 'mounting subsystem' (??) would be
burdensome, but also seems to me like the Right Thing To Do:  Disk
Changed?  Force an unmount, discard all buffers.  You can 'rm' a
directory which is a user's $cwd; not quite the same as a umount though.

This seems to be straying from the topic of AutoFS, but seeing
@transmeta.com - I'll hedge my bets that it's not useless to bring this
up here.  =)

regards,
Christopher

Reply via email to