|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Alexander Hall (alexander
beard.se)
Date: Sun Feb 03 2008 - 18:42:58 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Chris wrote:
> My USB drive and camera get automagically mounted by hotplugd attach
> script. I was wondering if I need to write a detach script as well.
> Bob Beck mentioned in his undeadly post that the detach script is not
> really needed.
>
> Could anyone shed some light on this please? Thanks.
As Bob writes, the unmount is handled automatically on detach. Since
msdos file systems do not have the concept of dirty unmounts, they can
simply be yanked out, assuming they do not have any pending (buffered)
writes to do. If they do, I guess they are simply flushed and lost.
A few years ago, I seem to recall kernel panics on yanking ffs file
systems, but I have not seen them in quite a while and I think they're
now handled the same way, with the exception of them being dirty on
reinsertion. Of course, in this situation, the umount is already too
late when any detach script would run.
/Alexander
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]