Anil Kalasa wrote:
# ls -li
total 1456
32 -rwx------ 1 root root 0 Nov 1 11:11 .hpshm_keyfile
205 -rw-r--r-- 1 root root 524346 Jan 4 12:50 SAN
8552449 drwxr-xr-x 2 root root 4096 Jan 4 12:49 Source
31 -rw-r--r-- 1 root root 8395 Jul 6 2006 adlagent.conf.default
19 drwxr-xr-x 2 root root 4096 Jul 6 2006 bin
20 drwxr-xr-x 3 root root 4096 Jan 4 17:57 boot
33 -rw-r--r-- 1 root root 121 Jan 4 12:05 config.log
696 drwxr-xr-x 12 root root 6680 Jan 21 15:22 dev
12 drwxr-xr-x 72 root root 8192 Jan 22 14:06 etc
No duplicate inodes, links seem to be OK, no problem to see.
I don't have any other idea short of stracing find.
strace find / -maxdepth 2 2>/tmp/find.log >/dev/null
must output something like
...
open("/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
getdents64(4, /* 30 entries */, 4096) = 784
getdents64(4, /* 0 entries */, 4096) = 0
close(4) = 0
open("/", O_RDONLY|O_LARGEFILE|O_NOFOLLOW) = 4
fchdir(4) = 0
close(4) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("lost+found", {st_mode=S_IFDIR|0700, st_size=16384, ...}) = 0
open("lost+found", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0700, st_size=16384, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
getdents64(4, /* 2 entries */, 4096) = 48
getdents64(4, /* 0 entries */, 4096) = 0
close(4) = 0
open("lost+found", O_RDONLY|O_LARGEFILE|O_NOFOLLOW) = 4
fchdir(4) = 0
close(4) = 0
stat64(".", {st_mode=S_IFDIR|0700, st_size=16384, ...}) = 0
open("..", O_RDONLY|O_LARGEFILE|O_NOFOLLOW) = 4
fchdir(4) = 0
close(4) = 0
lstat64("etc", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("etc", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
getdents64(4, /* 129 entries */, 4096) = 4080
getdents64(4, /* 92 entries */, 4096) = 2968
getdents64(4, /* 86 entries */, 4096) = 2936
getdents64(4, /* 0 entries */, 4096) = 0
close(4) = 0
...
This is the place where find reads the / directory entries, reads
and recurses into lost+found (which works at your system), and opens
and reads etc (which doesn't work).
Frankly, I suspect that this won't show your error cause either, but
one can only hope to get more information that finally gives a clue
to what happens here.
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: [EMAIL PROTECTED]
Roedermark, Germany
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]