server side copy question...

Developer discussions.

server side copy question...

Postby tangles » Fri Aug 21, 2015 8:46 pm

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
tangles
 
Posts: 195
Joined: Tue Jun 17, 2014 6:54 am

Re: server side copy question...

Postby lundman » Sun Aug 23, 2015 10:04 pm

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).
User avatar
lundman
 
Posts: 1337
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to OpenZFS on OS X Development

Who is online

Users browsing this forum: No registered users and 12 guests