We're running into an inode limit on our fileserver and I'm doing an experiment to reduce the number of inodes. How can I find out how many inodes a directory uses? I read that the linux kernel doesn't create an inode for soft-links under 60 bytes, but instead stores that symbolic link in the directory inode itself. Thus, I'm trying to shorten the length of the symbolic links to under 60 bytes and then see if this reduces the inode count.
EDIT: ( can't put newlines in comments... ) @caliban What I'm suggesting is creating 1 symbolic link to the parent directory and then having all other symbolic links point through that parent dir e.g. original links:
a -> /LONG_PATH/a b -> /LONG_PATH/b c -> /LONG_PATH/c
with directory symbolic link
__parent_dir -> /LONG_PATH a -> parent_dir/a b -> parent_dir/b c -> parent_dir/c