in reply to Re: Disc Space checking
in thread Disc Space checking

Ew, that hits the tree twice :(

On a big directory you'd probably want to put du's output in RAM and do the postprocessing there...

Replies are listed 'Best First'.
Re^3: Disc Space checking
by tachyon (Chancellor) on Sep 19, 2004 at 04:27 UTC

    Yes, but it only hits 20 indodes the second time around :-)

    cheers

    tachyon

      It can hit up to 60 depending on filesystem type and filename length, but yeah, come to thing of it, this isn't too bad :-)

      (Wait no, it can hit more than 60 actually, because subdirectories mean another inode hit (or three). So in very deep, very long cases, this can take a few hundred hits. Still not too bad in practical terms, of course.)