Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!rlgvax!cvl!umcp-cs!chris
From: chris@umcp-cs.UUCP
Newsgroups: net.unix
Subject: Re:  Question about ustat(2) and free disk space / df, 4BSD
Message-ID: <5591@umcp-cs.UUCP>
Date: Thu, 1-Mar-84 23:25:45 EST
Article-I.D.: umcp-cs.5591
Posted: Thu Mar  1 23:25:45 1984
Date-Received: Sat, 3-Mar-84 23:14:08 EST
References: <16862@sri-arpa.UUCP>
Organization: Univ. of Maryland, Computer Science Dept.
Lines: 15

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@umcp-cs		ARPA:	chris.umcp-cs@CSNet-Relay