I have this inode usage:
host:~ # df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hda1 655360 655357 3 100% /
but, if I run this command:
for i in `find . -xdev -type d `; do echo `ls -a $i | wc -l` $i; done | sort -n
I have this output:
host:/ # find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
3 srv
17 root
25 bin
83 sbin
133 lib64
184 opt
985 boot
2109 etc
4487 lib
50489 usr
but the sum of all of them does not match at all. I have no clue where the inodes are used.