[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: total block size



Hi,

On Mon, Aug 27, 2001 at 02:44:54PM -0500, Jeff Meininger wrote:
 
> Would it be possible for me to calculate how much overhead there is using
> only the raw data (that is, without relying on statfs() to do the work for
> me)?
> 
> I assume it would be a matter of 1.) Knowing what's taking up space
> (bitmap blocks, inode tables, etc), 2.) knowing how big each of those are,
> and 3.) knowing how many you have.  Can anyone help me with those
> particulars?

Yes --- if you look at linux/fs/ext2/super.c, you'll see where it
calculates the overhead in the "ext2_statfs" function.  That should
give you what you need.

--Stephen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]