Re: [ANNOUNCE] submount: another removeable media handler

H. Peter Anvin (hpa@zytor.com)
16 May 2003 11:46:20 -0700


Followup to: <200305161027.20045.eweiss@sbcglobal.net>
By author: Eugene Weiss <eweiss@sbcglobal.net>
In newsgroup: linux.dev.kernel
>
>
> > how is it different from what automounter does?
>
> Autofs works by creating a special filesystem above the vfs layer, and passing
> requests and data back and forth. Submount actually does much less than
> this- it puts a special filesystem underneath the real one, and the only
> things it returns to the VFS layer are error messages. It handles no IO
> operations whatsoever.
>
> Peter Anvin has called using the automounter for removeable media "abuse."
> Submount is designed for it.
>

Sure, but it's not clear to me that you have listened to me saying
*why* it is abuse.

Basically, in my opinion removable media should be handled by insert
and removal detection, not by access detection. Obviously, there are
some sticky issues with that in the case where media can be removed
without notice (like PC floppies or other manual-eject devices), but
overall I think that is the correct approach.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/