>
>
>On Tue, 14 Sep 1999, Jim Nance wrote:
>
>> Hello All,
>> I found a linux quirk I thought I would mention. I dont think it really
>> hurts anything, but its kind of wierd. I went to a mount point and ran the
>> commands:
>>
>> mount .
>> ls
>>
[much snippage]
>I think sys_mount() is the best place to check whether the dir_name (the directory to be
>covered) is "." and do appropriate action at this time. Propagating this task further down
>will make it difficult because the functions there are general functions called from many diffrent places (for ex. we cannot check this in lookup_dentry() because it is called from open, lstat etc. and "." in these cases is perfectly fine).
>
But really, shouldn't mount refuse to mount onto a busy directory? I'm
reasonably sure that other unixes refuse to do this - it seems to me
that the potential for Bad Things happening is very large with this
behaviour.
-
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/