site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=WYsLEfISuJvu7PXnZXgwo7Sz5gSoNaNRl828h+44KiKMK/AJp/lRxBibOdoHyqVurIyWhayjVkq+9WcsJMWFsolmbC1xHqppbqSH6bLqPKjHPI+02BQFv3sjNQQykBm4Z4TnoiFLv/dhm62/ITx4OWkWWvx3d6czOiRE/SWXoi8= On Wed, 12 Jan 2005 16:34:07 -0600 (CST), Jerry Pendergraft <jerry@endocardial.com> 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 clarkcox3@gmail.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Clark Cox