• 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: HFS + and creating a big file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HFS + and creating a big file


  • Subject: Re: HFS + and creating a big file
  • From: Mike Smith <email@hidden>
  • Date: Sat, 10 Jun 2006 16:51:50 -0700


On Jun 10, 2006, at 12:02 PM, email@hidden wrote:

I need to create a big file (20GB), the contents is not important,
will fill that in later, just the file size...
When I try to do this with lseek and then write one byte. as soon I
close the file, it takes a few minutes because it looks like the OS
is filling up the rest with 0x00 bytes during close or flush. File
system is HFS+

Any trick on how to prevent this from happening?

HFS+ does not support sparse files; what you are seeing is the expected and correct behaviour.


If you don't need the file when you are closing it, first truncate it to zero size, then close and delete.

 = Mike

_______________________________________________
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


  • Follow-Ups:
    • Re: HFS + and creating a big file
      • From: Chris Page <email@hidden>
  • Prev by Date: Re: HFS + and creating a big file
  • Next by Date: manual network configuration problem
  • Previous by thread: Re: HFS + and creating a big file
  • Next by thread: Re: HFS + and creating a big file
  • Index(es):
    • Date
    • Thread