Skip to contentSkip to conversation

getcwd() returning -ENOENT???

DISCUSSION Russell King 2 participants 2 messages Dec 7, 2000

lore
Share & tools
lore
#0 lore raw

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
bash# vdir /proc/self/.
...
lrwxrwxrwx 1 root root 0 Dec 7 14:52 cwd -> /net/raistlin/raistlin-v2.4/linux-ebsa285 (deleted)
...
lrwxrwxrwx 1 root root 0 Dec 7 14:52 root -> /
...
bash# vdir
... <complete listing of directory> ...
bash# cat /proc/mounts
/dev/root / ext2 rw,noatime 0 0
/proc /proc proc rw 0 0
/dev/hda3 /var ext2 rw,nodiratime 0 0
/dev/hda5 /usr ext2 rw,noatime 0 0
/dev/hda6 /home ext2 rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm shm rw 0 0
automount(pid482) /net/flint autofs rw 0 0
automount(pid499) /net/raistlin autofs rw 0 0
raistlin:/usr/src/v2.4 /net/raistlin/raistlin-v2.4 nfs rw,v2,rsize=4096,wsize=4096,hard,udp,lock,addr=raistlin 0 0

Rebooting the machine and trying again caused this weirdness to disappear.

First time around, the network wasn't initially available when autofs started.
_____

  |_____| ------------------------------------------------- ---+---+-
  |   |         Russell King        [email protected]      --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html   /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

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

#1 lore raw
Quoted 6 lines · Russell King

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.

Quoted 3 lines

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

Ditto.

Quoted 5 lines

...
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 [email protected]
Please read the FAQ at http://www.tux.org/lkml/