*Quickly* counting the number of files on a partition

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Tue Jan 24 19:13:24 UTC 2006


On Thu, Jan 19, 2006 at 02:37:36AM -0500, Madison Kelly wrote:
> w00ts!!
> 
>   '# stat -f /' (where '/' is the root partition) works absolutely 
> beautifully on 'ext*' file systems (at least). However, it doesn't work 
> on an SMB mounted partitions (and others?) though...

I doubt SMB includes any such data on the filesystem.  I don't think any
windows filesystem maintains that data being that they are not inode
based in the first place.

>   This is a huge step forward, but if you or anyone can think of a 
> similar trick for other file systems (or perhaps a file system-agnostic 
> method) that would be really helpful, too.
> 
>   In the mean time, I can check the FS and if it's one that this trick 
> will work on I can go ahead and use the nicer progress bar and just fall 
> back on the current scheme for unsupported file systems... at least 
> until I can find similar tricks for them, too.
> 
> Thank you *very* much!!
> 
> Madison
> 
> -- 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>           Madison Kelly (Digimer)
>    TLE-BU; The Linux Experience, Back Up
> Main Project Page:  http://tle-bu.org
> Community Forum:    http://forum.tle-bu.org
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> --
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list