Re: multimounting cdroms ???

From: Steven S. Dick (ssd@nevets.oau.org)
Date: Thu Jul 27 2000 - 00:53:43 EST


Alexander Viro <viro@math.psu.edu> writes:
[overmounting]
>It needs to be fixed, but IMO the right answer is "don't give that power
>to malicious user". mount _is_ a priveleged operation, after all. But yes,
>this thing with stacking them over the same point needs to be fixed. IMO
>"replacement" semantics is the right way to do that, but there are other
>variants. It will be fixed one way or another before the 2.4.0-final.

It seems to me that if device and target path are identical,
only the options need to be changed, not the whole mount,
and if no options are changed, the whole operation should be ignored.

In other cases, it would be better to stack the mounts, especially if
the device is different.

And even messier--can I rip out the bottom item in the stack?

I.e.,

mount /dev/fd0 /floppy
mount /dev/fd1 /floppy
umount /dev/fd0

Exactly how flexible are the semantics of this?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:23 EST