Subject: Re: unintended consequences of ffs_dirpref()?
To: Bill Sommerfeld <sommerfeld@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 01/16/2001 11:54:26
On Tue, Jan 16, 2001 at 02:46:23PM -0500, Bill Sommerfeld wrote:

 > How about, instead:
 > 
 > 	- scan once looking for cs_nbfree > 0; return best found if any
 > 	- scan once looking for cs_nffree > 0; return best found if any
 > 	- return 0; mkdir will fail because the disk is full.
 > 
 > This has the advantage that the second pass will not pick a completely
 > full cylinder group..

Oh, sure, that'll work, too.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>