• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disk Usage Incorrect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Disk Usage Incorrect (From: Jonas Maebe <email@hidden>)
 >Re: Disk Usage Incorrect (From: Jerry Pendergraft <email@hidden>)

  • Prev by Date: Re: Disk Usage Incorrect [solved]
  • Next by Date: Re: Disk Usage Incorrect
  • Previous by thread: Re: Disk Usage Incorrect
  • Next by thread: Re: Disk Usage Incorrect
  • Index(es):
    • Date
    • Thread