The patch delete no umount eject flash disk freebsd panic

Eric Anderson anderson at freebsd.org
Thu Feb 22 17:23:53 UTC 2007


On 02/22/07 09:39, Oliver Fromme wrote:
> Recently I had an idea to solve (or work around) the problem
> in a completely different way, using FUSE.
> 
> With FUSE it would be possible (and quite simple, in fact)
> to implement an msdosfs-like file system as a userland
> daemon.  The daemon could be started during boot and run
> until shutdown, i.e. the mount would exist all the time.
> You could insert and remove USB sticks, compact flash cards
> and other removable FAT media at will, without having to
> mount or umount.  If you remove the device, the files would
> simply disappear from the mountpoint.  Any files still open
> by processes would have to return some sensible error code
> (maybe EBADF or ESTALE).
> 
> The actual code for the daemon could be borrowed from the
> kernel's msdosfs, or from mtools (ports/emulators/mtools).
> 
> Unfortunately I don't have sufficient time right now for
> doing it myself.  But if someone picks up that idea and
> implements it, it would be quite useful.  Using FUSE isn't
> difficult, bascially you have to link against the library
> and implement handlers for a number of file system related
> functions (lookup, read, write etc.).  Since it runs
> entirely in userland, there's no danger of kernel panics,
> and debugging is quite simple.
> 
> Maybe something for the FreeBSD ideas web page ...?
> 
> Best regards
>    Oliver
> 


Honestly, I think the OS should do this, not an external userland tool. 
  Having a FUSE module handle this, to me, is a bandaid for the right 
solution.  I'm not claiming I know the solution yet, but I know it 
should be a built-in.

Eric



More information about the freebsd-fs mailing list