Subject: Re: newfs: determining file system parameters
To: Bill Studenmund <wrstuden@netbsd.org>
From: Ted Unangst <tedu@zeitbombe.org>
List: tech-kern
Date: 10/17/2003 15:50:45
On Thu, 16 Oct 2003, Bill Studenmund wrote:

> You missed the point. :-) The point is to make it so that _all_ the info,
> including saved block, fragment, and cpg value, are obtainable without 
> needing a disklabel. And also so that they can be updated w/o needing a 
> disklabel.

one possible concern is that this approach is very ffs-centric.

an ioctl for size makes sense, it is likely to be different for each 
partition.  block size is less likely to be tweaked by partition, and you 
can easily set a sane default in newfs.  the size is the only thing you 
need to know that can't be guessed or calculated.

i think sticking the size in stat makes sense, unless there's some 
reason why not.  and once you can just stat the file, the ioctl becomes 
redundant.


-- 
let's stop saying "don't quote me"
because if no one quotes you
you probably haven't said a thing worth saying