Page 1 of 1

server side copy question...

PostPosted: Fri Aug 21, 2015 8:46 pm
by tangles
So SSC works with Apple's implementation of Samba on 10.10 with ZFS filesystems, as I can duplicate a file and it occurs without any network activity.

Is there anything that can be done with ZFS to have Samba perform SSC when duplicating within the pool? i.e. from FS to FS? within a pool?

Or is this something that Samba would have to implement in their source code and then we just hope that Apple adopt it one day?

i.e. when data is being read from FileSystem A to FileSystem B:

IF pool_UUID of FileSystem A == pool_UUID of FileSystem B
set SSC True
END IF

Re: server side copy question...

PostPosted: Sun Aug 23, 2015 10:04 pm
by lundman
Having never looked at this I am unsure where the logic for it happens. Is it simply calling vnop_copyfile (which we dont have)? or is it doing some hfs checks (mimic?) etc.

Guess if I did this SSC between two zfs datasets, and had debugging on we could see if it is a missing vnop or ioctl. Could be worth repeating with mimic on, as well as with issue116 (not easy to run for non-developers).