Re: Copying files >2GB
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.