Re: Copying files >2GB
Re: Copying files >2GB
- Subject: Re: Copying files >2GB
- From: "Jan E. Schotsman" <email@hidden>
- Date: Wed, 25 Feb 2004 11:29:35 -0500
Hello Quinn
>
>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>).<
I think I'll go with option 2 even though I hate ioErr ;-)
Option 1 seems to imply that the resulting GetVolParmsInfoBuffer can be
different if you approach a volume over a network. Is that correct?
Jan.
_______________________________________________
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.