On Sun, 2002-09-22 at 22:30, Jeff Breidenbach wrote: > df -i does not work for reiserfs, at least under Debian 3.0. > For example, the following partition is actually more than 10% > full. > > Filesystem Inodes IUsed IFree IUse% Mounted on > /dev/sdb1 4294967295 0 4294967295 0% /home/archive > > >From responses so far, my understanding is there may be > a partition-wide file counter possible in the future. > > However, it also sounds like there is little to no chance of a > reiserfs-specific fast approximate file counter that will work on a > directory subtree, even if that subtree is very wide and shallow.
Correct, that information isn't really stored. Not very hard to deal with from an application point of view though ln -s 8,765,432 num_files 8765432 doesn't have to exist, you can just read the symbolic link. Note that if each file name has a fixed size, you can deduce the number of files in the directory from the directory size. -chris
