Re: Metadata support
Re: Metadata support
- Subject: Re: Metadata support
- From: "Jordan K. Hubbard" <email@hidden>
- Date: Wed, 28 Jun 2006 00:10:37 -0700
On Jun 27, 2006, at 12:17 PM, Dan Shoop wrote:
- rsync -aE doesn't preserve BSD flags, locked flag, modification
date of files with resource forks, ACLs (I'm sure there's
gazillions of rdars)
It also doesn't appear to be able to copy files with both ACLs and
resource forks. It appears to only work if you have one or the
other. At least that was the last time I checked.
That's not true. rsync copies all EAs, of which ACLs are simply
examples of. It also copies a couple of "synthetic EAs", namely the
old-style resource fork information and the finderInfo. As far as
rsync (and tar and anyone else using copyfile()) is concerned,
however, it's just a list of EAs scattered across several different
namespaces (for various reasons, ACL-containing EAs are logically
segregated). If you want to do more digging for yourself, simply
check out the source code for copyfile() and the behavior of the
getxattr() call.
The creation date information you and maurits have been referring to
(as copied by the Finder) is another bit of information in the HFS
catalog which isn't currently exposed via stat(), but we have other
ways to get at it and will probably end up storing it as another
"synthetic EA" for portability purposes, though that's not a firm
decision yet.
Thanks to everyone for sparking an interesting discussion. It's led
us to renew internal discussion on this topic and we're currently
engaged in trying to work out ways of making Finder copies and tar/cp/
rsync copies more genuinely equivalent as a result.
- Jordan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden