Question about ustat(2) and free disk space / df, 4BSD
chris at umcp-cs.UUCP
chris at umcp-cs.UUCP
Fri Mar 2 14:25:45 AEST 1984
Under 4.1 "df" works by reading the superblock off the disk. 4.1
maintains a "tfree" value in the superblock which holds the amount
of free space. df also has a "-l" option to go count up the free
list (it's printed out under a column marked "hardway" -- pretty
appropriate).
The -l option is occasionally useful if you suspect your superblock
is munged.
For the adventurous, you can experiment with different disk-inode-
table sizes based on the output of "df -i".
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci
UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris.umcp-cs at CSNet-Relay
More information about the Comp.unix
mailing list