• 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: Copying files >2GB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copying files >2GB


  • Subject: Re: Copying files >2GB
  • From: Quinn <email@hidden>
  • Date: Tue, 24 Feb 2004 13:19:13 +0000

At 3:56 -0500 24/2/04, Jan E. Schotsman wrote:
I wasn't sure if this would work for all kinds of networks.

It will.

I am copying the forks manually to work around the 2GB limit in my utility
JES CopyLargeFile (joining parts at the other side).
I could also be creating a large file (adding video samples) over a
network. In this case I would like to know in advance if the file can grow
beyond 2GB.
Would FSAllocateFork do the trick?

There are two ways to approach this.

1. You can call PBHGetVolParms and test the bSupports2TBFiles bit in the vMExtendedAttributes field of the resulting GetVolParmsInfoBuffer. This tells you whether the volume supports files up to 2 TB.

2. You can just call FSSetForkSize for the size you want. That will fail if you request a size larger than 2 GB and the volume doesn't support large files (it should fail with fileBoundsErr; this works correctly on traditional Mac OS, but on Mac OS X you get ioErr <rdar://problem/3568263>).

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Copying files >2GB (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: Re: Copying files >2GB
  • Next by Date: CFReadStream not giving me any data
  • Previous by thread: Re: Copying files >2GB
  • Next by thread: Re: Copying files >2GB
  • Index(es):
    • Date
    • Thread