[ale] Inode count in directory

Jim Popovitch jimpop at gmail.com
Sat Feb 13 15:42:16 EST 2010


On Sat, Feb 13, 2010 at 15:25, Nate Murchison <nate.murchison at gmail.com> wrote:
>
> The URL above is a cute and flippant use of google to return links to
> answers that are ironically wrong.  The first link returned by google
> points to a site that uses a script that breaks immediately when given
> a directory name that begins with a comma as an argument (
> http://fieldsmarshall.com/how-to-count-inodes-for-each-directory/ ),

You have a directory name that begins with a comma?  WTF?

That first result works perfectly on both a Debian Lenny and an Ubuntu
Karmic distro.

> the second suggests a script that fails to take hard links in a
> directory into account  (file /a/b and /a/c may be the same inode with
> two directory entries).

But if you do more than just read the text on that link you can figure
it out.  Give a man a fish vs teaching him to fish....

> The Brandon Checketts probably assumed that he would get a better
> (either more correct or more helpful) answer from ale than from google.  Oh well.

Or maybe he didn't.  Who are you to guess?   It's also worth pointing
out that you provided no solution to Brandon's request, at least I
pointed him in the right direction with the appropriate google query.

-Jim P.



More information about the Ale mailing list