Re: Remote copy on AFP volume
Re: Remote copy on AFP volume
- Subject: Re: Remote copy on AFP volume
- From: James Bucanek <email@hidden>
- Date: Mon, 21 Apr 2008 12:23:29 -0700
Quinn, Rob, ... thanks for the info.
Quinn <mailto:email@hidden> wrote (Monday, April 21, 2008
1:32 AM +0100):
The routine you're looking for is PBFSCopyFileSync. This maps to the
copyfile system call, which maps to the FPCopyFile AFP command.
PBFSCopyFileSync appears to be Leopard only. I need something
that will work on Tiger.
FSCopyObject does not go through <x-man-page://3/copyfile> but it will
use the copyfile system call under some circumstances. Specifically,
it requires that the source and destination volumes are the same and
the volume supports copyfile per the VOL_CAP_INT_COPYFILE flag
returned by <x-man-page://2/getattrlist>. Notably, AFP actually allows
you to copy between two different volumes as long as they're on the
same server, but FSCopyObject does not take advantage of that.
So if I'm reading this right, it sounds like FSCopyObjectSync
will also perform a remote copy? FWIW, the source and
destination will always be within the same directory for this
application, so cross-volume or cross-directory copies aren't an
issue for me.
Is there a good reason to use PBFSCopyFileSync over
FSCopyObjectSync? Should I use PBFSCopyFileSync instead of
FSCopyObjectSync if it's available?
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden