2001-11-20 03:47:38

by Andre Hedrick

[permalink] [raw]
Subject: Re: Linux can use a mountpoint for 2 Filesystems


Greetings Gernot,

You can do this with all real and virtual spindles under Linux.
The reality is total crap that it can happen, but what the hey ...
No policies in UNIX, ROOT beware.

Sorry, but this report saddens me, issues like these are permitted
There are no kernel controls to prevent multi mounting to the same point.

Regards,

Andre Hedrick
Linux ATA Development

On Tue, 13 Nov 2001, Gernot.Fink wrote:

> Hallo,
>
> I dont know if this is a kernelbug, but I can mount 2 Filesystems to a
> mountpoint.
>
> like
> mount /dev/hda6 /mnt
> mount /dev/hda7 /mnt
>
> after the second mount is /dev/hda7 mounted.
>
> Strace says that the mount-systemcall returns 0
>
>
> This is the output from mount
>
> /dev/hda5 on / type ext2 (rw)
> proc on /proc type proc (rw)
> /dev/hda1 on /dos type msdos (rw,gid=45,umask=2,quiet)
> devpts on /dev/pts type devpts (rw,gid=5,mode=0620)
> /dev/hda6 on /mnt type ext2 (rw)
> /dev/hda7 on /mnt type minix (rw)
>
> Thanks for your great work.
>
> If some fields are empty or look unusual you may have an old version.
> Compare to the current minimal requirements in Documentation/Changes.
>
> Linux gar 2.4.14 #11 Wed Nov 7 21:15:48 MET 2001 i686 unknown
>
> Gnu C 2.95.2
> Gnu make 3.77
> binutils 2.9.1.0.25
> util-linux 2.10o
> mount 2.10o
> modutils 2.4.0
> e2fsprogs 1.19
> pcmcia-cs 3.0.4
> PPP 2.4.1
> Linux C Library 2.1.2
> Dynamic linker (ldd) 2.1.1
> Procps 1.2.11
> Net-tools 1.52
> Kbd 0.99
> Sh-utils 1.16
> Modules Loaded minix slip 8139too msdos fat
>
>
> --
> MFG Gernot
>