> >
>    To do the auto-unmount on eject for Solaris would require changes to 
> vold (See the other post
>    by Frank Hoffman). But as you say unmount on unuse looks odd. Rather 
> it should be unmount
>    (if possible) on eject.


For HSFS it's of no special consequence. For filesystems that
_write_ to the removeable media, it is - unmount-when-unused
can make sure outstanding I/O buffers can be flushed properly,
while unmount-on-eject might end up with an inconsistent medium
even if the OS itself "cleans up". The filesystem driver can
only clean up state that it controls ... and a forced unmount
is exactly that, force cleanup of internal state regardless of
what has happened to the storage ...

fsflush & friends aren't 100% deterministic wrt. to when all
in-core state changes will have ended on the medium.

But then, for unmount-when-unused to work properly, mounts need
to be quick. Which at least for PCFS, they're not. This piece
needs some real work.

In a way, unmount-when-unused is what autofs has always been
doing. I know autofs' sourcecode is a beast, which probably
explains why people haven't been extending it but instead
created "workalikes" that deal with removeable media ...

FrankH.

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to