Re: mount-2.11e bug ?

From: Guest section DW (dwguest@win.tue.nl)
Date: Fri Jul 27 2001 - 04:53:50 EST


On Fri, Jul 27, 2001 at 01:31:38AM +0200, J . A . Magallon wrote:

> Can anybody tell me if there was a bug in mount from util-linux-2.11e that could
> do things like this with new kernels:
>
> /etc/fstab:
> ...
> tmpfs /dev/shm tmpfs defaults,size=128M 0 0
> ...
>
> werewolf:~/soft/util/util-linux-2.11e/mount# df
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/sda1 248895 83086 152959 36% /
> /dev/sda2 3099292 2092872 848984 72% /usr
> /dev/sda3 4095488 1603796 2283652 42% /home
> /dev/sda5 1027768 8 975552 1% /toast
> /home/soft/util/util-linux-2.11e/mount/tmpfs
> 131072 0 131072 0% /dev/shm
>
> 2.11h works ok.

Yes, there was.

Mount does a canonicalize() on the path names of device and mount point.
Thus, tmpfs when your current directory is ~/soft/util/util-linux-2.11e/mount
becomes /home/soft/util/util-linux-2.11e/mount/tmpfs.

However, this only happens when the thus obtained pathname points at an
actual file. In a few mount versions the realpath() routine also did this
when there is no such file.

Andries
-
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/



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:31 EST