What does df command use to get "Used" column?

Peter Steele psteele at maxiscale.com
Thu Mar 12 20:08:08 PDT 2009

>Line 417 of /usr/src/bin/df/df.c: 
>used = sfsp->f_blocks - sfsp->f_bfree; 

I keep forgetting that I can go directly to the source to answer questions like this. Thanks muchly; this is exactly what I need. 

More information about the freebsd-questions mailing list