Re: getcwd() returning -ENOENT???

From: Alexander Viro (viro@math.psu.edu)
Date: Thu Dec 07 2000 - 10:31:23 EST


On Thu, 7 Dec 2000, Russell King wrote:

> Hi,
>
> Can someone explain why I'm seeing the following on test12-pre7:
>
> bash# /bin/pwd
> /bin/pwd: cannot get current directory: No such file or directory

Directory is unhashed. Normally it means that sucker had been deleted.

> bash# vdir /proc/self/.
> ...
> lrwxrwxrwx 1 root root 0 Dec 7 14:52 cwd -> /net/raistlin/raistlin-v2.4/linux-ebsa285 (deleted)

Ditto.

> ...
> lrwxrwxrwx 1 root root 0 Dec 7 14:52 root -> /
> ...
> bash# vdir
> ... <complete listing of directory> ...

Which means that it is _not_ deleted. Looks like it had been invalidated
for some reason. Try to reproduce that on -test10 - that should be before
NFS changes.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Dec 07 2000 - 21:00:17 EST