Re: Is cloning the same as copying in APFS?
Re: Is cloning the same as copying in APFS?
- Subject: Re: Is cloning the same as copying in APFS?
- From: Alastair Houghton <email@hidden>
- Date: Wed, 28 Jun 2017 10:43:07 +0100
On 27 Jun 2017, at 22:45, Rick Mann <email@hidden> wrote:
>
> Agreed. Thanks for the code, and for showing the other techniques. In my
> case, I still have to support HFS+, and I want to do that with hard links. I
> wish there was an API to clone-or-hardlink, but I can do that.
Perhaps worth emphasising here, since you mention hard links, that the
difference between hard links and clones is that clones are copy-on-write.
i.e. if you hard link a file, and then change the data, *all of the linked
copies will change too*.
I’m sure that’s not an issue in your application, but if someone later happens
across this thread and thinks “What a great idea!”, mentioning that the two are
only equivalent for the read-only case might avoid some pain.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden