[OpenAFS-devel] stat bug?
chas williams
chas@cmf.nrl.navy.mil
Tue, 21 Aug 2001 12:20:17 -0400
gnu find is such a wonderful utility. lets say that i have a
bunch of mount points in the directory, like this:
% ls .
6.5.10f/
6.5.10m/
6.5.11f/
6.5.11m/
6.5.13f/
6.5.13m/
6.5.9f/
other/
were is other/ is the only real directory in the volume and eveything
else is moint points. what does stat(".") return?
% ~/stat.pl .
file = .
mode = 40755o
size = 2048
nlink = 3
ctime = 998410466
mtime = 998410466
atime = 998410466
gnu's find looks at nlink 3 and after it processes the first 'subdirectory'
(6.5.10f in this case) it believes it has found all of the directories in
. and stops processing.
what would be the right way to fix this? tell find not to use optimizations
or have afs return a 'more correct' link count?