• 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: allocation block size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: allocation block size


  • Subject: Re: allocation block size
  • From: Brendan Younger <email@hidden>
  • Date: Wed, 14 Nov 2007 15:05:40 -0600


On Nov 14, 2007, at 2:06 PM, Paul Wasmund wrote:

What is a simple way to get the allocation block size of a volume?

Paul Wasmund

The stat(2) syscall will give you a st_blksize field. Also, CoreServices's FSGetVolumeInfo returns an FSVolumeInfo struct with a blockSize field. If you're trying to optimize I/O performance, bear in mind that nowadays it's better to make it easy on the VM system to map dirty pages to disk. This means sending page-aligned data in multiples of 4K. See <http://developer.apple.com/documentation/Performance/Conceptual/FileSystem/index.html?http://developer.apple.com/documentation/Performance/Conceptual/FileSystem/Articles/FilePerformance.html >.


Brendan Younger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >allocation block size (From: Paul Wasmund <email@hidden>)

  • Prev by Date: allocation block size
  • Next by Date: Re: Updating volumes in Finder on mount/unmount in Leopard
  • Previous by thread: allocation block size
  • Next by thread: BSD device name and its mount point
  • Index(es):
    • Date
    • Thread