Len Zaifman wrote:
Because we have users who will create millions of files in a directory it would be nice to report the number of files a user has or a group has in a filesystem. Is there a way (other than find) to get this?
I don't know if there is a good way, but I have noticed that with ZFS, the number in "ls" which used to be for "blocks" actually report the number of entries in the directory (-1).
drwxr-xr-x 13 root bin 13 Oct 28 02:58 spool ------------^^ # ls -la spool | wc -l 14 Which means you can probably add things up a little faster. -- Jorgen Lundman | <lund...@lundman.net> Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work) Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell) Japan | +81 (0)3 -3375-1767 (home) _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss