lkml.org 
[lkml]   [2000]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectbug: mount on an open directory succeeds
Date
Hi,
mount on an open directory succeeds. A directory can be opened either by
exlicitely calling open or by doing a cd.

#cp /etc/passwd /mnt3/a
#cd /mnt3
#mount -t ext2 /dev/sda6 /mnt3
#ls
lost+found
#ls -l
ls: lost+found: No such file or directory
total 0
#cat a
root:x:0:0....
.............
.......
#

Is the bug in d_mount() where a check, whether the mountpoint directory is
open, is not made?

Thanks.
--
Amit Kale
Veritas Software ( http://www.veritas.com )

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

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.043 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site