Re: Disk Usage Incorrect
Re: Disk Usage Incorrect
- Subject: Re: Disk Usage Incorrect
- From: Clark Cox <email@hidden>
- Date: Wed, 12 Jan 2005 18:23:59 -0500
On Wed, 12 Jan 2005 16:34:07 -0600 (CST), Jerry Pendergraft
<email@hidden> wrote:
> On the point of comparing file size to allocated size I did a quick and
> dirty perl script to stat files and find out what allocated size was for
> various file sizes. Got a big surprise when this reported more than a
> fraction of a block of waste for larger files. And the the minimum
> allocation seems to be 8 blocks even for the 1 byte file.
>
> Does darwin set the stat struct variable st_blocks somehow different than
> the man page describes as /* blockes allocated for file */ ??
In the man page, it states that stat reports the number of 512B
blocks, while the minimum filesize is 4K ... so nothing fishy here (4K
= 512B * 8)
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden