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

Re: FSAllocateFork


  • Subject: Re: FSAllocateFork
  • From: Rosyna <email@hidden>
  • Date: Sat, 7 Oct 2006 13:45:26 -0700

This is likely due to the fact you cannot have a larger than 2gig file on these formats.

On Mac OS X 10.4 or later, you can use FSCopyObjectSync() instead of the sample code. FSAllocateFork() is for preallocating space on volumes formats that support it. This can speed up the write. For AFP volumes, I'm not sure if it matters.

Ack, at 10/6/06, Lorenzo said:

I copy a file to a remote AFP disk using the routines from FSCopyObject.c.
When the file is > 2GB the API FSAllocateFork always returns an error -34
(disk full) even if the AFP remote disk has 4 GB free space.
So as I have read on the web, I have omitted FSAllocateFork .
It seems to work ok even with old MacOS 9 files with resource forks.
Do you think this omission could cause some problem?
I check the destination disk space using the new Cocoa APIs.

--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: FSAllocateFork
      • From: John Stiles <email@hidden>
References: 
 >FSAllocateFork (From: Lorenzo <email@hidden>)

  • Prev by Date: Calculating Lines of Text
  • Next by Date: Re: FSAllocateFork
  • Previous by thread: FSAllocateFork
  • Next by thread: Re: FSAllocateFork
  • Index(es):
    • Date
    • Thread