PATCH: preserve osx creation-date (was: Using pre2 for backing up a mac)

Wesley W. Terpstra wesley at terpstra.ca
Wed Oct 17 00:25:26 GMT 2007


On Oct 15, 2007, at 1:55 AM, Wayne Davison wrote:
> On Sun, Oct 14, 2007 at 08:14:57PM +0200, Wesley W. Terpstra wrote:
>> I've attached a patch which does this. Currently resource forks  
>> and finder
>> info get placed into an extended attribute transparently by osx
>> (com.apple.{ResourceFork/FinderInfo}). This patch makes another  
>> "extended
>> attribute" called com.apple.CreationDate.
>
> Thanks!  I've twiddled your patch a bit and checked it in as a file in
> the patches dir (for now, at least):  osx-create-time.diff

Found another bug: Some filesystems don't have creation dates  
(*shock*). If you tried to read it on these filesystems, it will  
fail, so one needs to check if the attribute exists first.

Revised patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check-first.patch
Type: application/octet-stream
Size: 2882 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20071017/a5ccb786/check-first.obj


More information about the rsync mailing list