[ale] system interface for df info?
Jim
ale_nospam at fayettedigital.com
Wed Jan 18 05:53:47 EST 2006
Ah, good old strace. Thanks for reminding me of a useful tool.
Jim.
Joe Steele wrote:
>An easy way to find out:
>strace df 2>&1 | less
>
>You'll see that it opens /etc/mtab, and then performs an statfs64() on
>each mounted filesystem found there.
>
>--Joe
>
>Jim wrote:
>
>
>>Where does df get its information? I'd like to programatically get the
>>same info without calling df. I've looked at /proc but nothing jumped
>>out. Obviously, df doesn't add up all the files to get "used" space,
>>'cause it doesn't take that long.
>>
>>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>
>
>
>
>
More information about the Ale
mailing list