public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mount-2.11e bug ?
@ 2001-07-26 23:31 J . A . Magallon
  2001-07-27  9:53 ` Guest section DW
  0 siblings, 1 reply; 2+ messages in thread
From: J . A . Magallon @ 2001-07-26 23:31 UTC (permalink / raw)
  To: Lista Linux-Kernel

Hello...

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.

TIA.

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:jamagallon@able.es
Mandrake Linux release 8.1 (Cooker) for i586
Linux werewolf 2.4.7-ac1 #1 SMP Thu Jul 26 19:53:39 CEST 2001 i686

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mount-2.11e bug ?
  2001-07-26 23:31 mount-2.11e bug ? J . A . Magallon
@ 2001-07-27  9:53 ` Guest section DW
  0 siblings, 0 replies; 2+ messages in thread
From: Guest section DW @ 2001-07-27  9:53 UTC (permalink / raw)
  To: J . A . Magallon, Lista Linux-Kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-27  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-26 23:31 mount-2.11e bug ? J . A . Magallon
2001-07-27  9:53 ` Guest section DW

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox