Hi List,
while doing a "du" in /proc, I get the following error msg:
du: `./2220/fd/4': No such file or directory
not quite sure, but doesnt "fd" mean a file descriptor? could it be an installed rootkit causing that error msg?
/proc/<pid>/fd is a directory with symlinks to the currently open files of the process with pid <pid>. In your case, the du binariy seemed to occupy pid 2220, and it stumbled over its own fd-symlinks. This is a race condition, between a getdents(2) and a following lstat(2) system call inside of du (the link is gone after the close(2) on the directory filedescriptor). It should not be worth the effort since du doesn't make sense in /proc (there is no disk space allocated there, the files and directories are there for us to see them only). Use "du -kx" to stay in the same filesystem.
Greeets Chr. Burri
Regards,
Roman.
--
- -
| Roman Drahtmüller