xattrs problems on Mac OSX with resource forks

smokin.jake at mac.com smokin.jake at mac.com
Sat Mar 31 17:33:26 GMT 2007


I am using the latest 3.0.0cvs  protocol version 30 Capabilities: 64- 
bit files, 32-bit system inums, 64-bit internal inums,
     socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,  
append, no ACLs, xattrs
xattrs  cvs 1.77

I installed xattr for Mac OSX

Senario:
$ mkdir /Users/alan/Desktop/folder1
$ echo 'Hello' > /Users/alan/Desktop/folder1/file1
$ xattr --set color blue /Users/alan/Desktop/folder1/file1

In the Finder.app  I set file1 to the color green.
Drag a bit of text 'details' to folder1 to give /Users/alan/Desktop/ 
folder1/details.textClipping

$ xattr --list  /Users/alan/Desktop/folder1/*

/Users/alan/Desktop/folder1/details.textClipping
           com.apple.FinderInfo  clptMACS
         com.apple.ResourceFork  <0000, 0000, 0x01, 0000, 0000, 0000,  
0x01, 0x6c, 0000, 0000, 0000, 0x6c, 0000, 0000, 0000, 0x6e, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0000, 0000, 0000,  
0x0e, 0000, 0x64, 0000, 0x65, 0000, 0x74, 0000, 0x61, 0000, 0x69,  
0000, 0x6c, 0000, 0x73, 0000, 0000, 0000, 0x07, 0x64, 0x65, 0x74,  
0x61, 0x69, 0x6c, 0x73, 0000, 0000, 0000, 0x40, 0000, 0000, 0000,  
0x01, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0x03, 0x75, 0x74, 0x66, 0x38, 0000, 0000, 0x01, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0x75, 0x74, 0x78, 0x74,  
0000, 0000, 0x01, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0x54, 0x45, 0x58, 0x54, 0000, 0000, 0x01, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0x01, 0000, 0000,  
0000, 0x01, 0x6c, 0000, 0000, 0000, 0x6c, 0000, 0000, 0000, 0x6e,  
0000, 0x5f, 0x80, 0xac, 0x03, 0x0d, 0000, 0000, 0000, 0x1c, 0000,  
0x6e, 0000, 0x03, 0x75, 0x74, 0x66, 0x38, 0000, 0000, 0000, 0x22,  
0x75, 0x74, 0x78, 0x74, 0000, 0000, 0000, 0x2e, 0x54, 0x45, 0x58,  
0x54, 0000, 0000, 0000, 0x3a, 0x64, 0x72, 0x61, 0x67, 0000, 0000,  
0000, 0x46, 0x01, 0000, 0xff, 0xff, 0000, 0000, 0000, 0000, 0000,  
0x3f, 0xfa, 0x94, 0x01, 0000, 0xff, 0xff, 0000, 0000, 0000, 0x0b,  
0000, 0x3f, 0xfa, 0x98, 0x01, 0000, 0xff, 0xff, 0000, 0000, 0000,  
0x1d, 0000, 0x3f, 0xfa, 0x9c, 0000, 0x80, 0xff, 0xff, 0000, 0000,  
0000, 0x28, 0000, 0x3f, 0xfa, 0x90>
/Users/alan/Desktop/folder1/file1
         com.apple.FinderInfo
                        color    blue

$ rsync -avvX /Users/alan/Desktop/folder1/ /Users/alan/Desktop/folder2/

sending incremental file list
created directory /Users/alan/Desktop/folder2
delta-transmission disabled for local transfer or --whole-file
./
.DS_Store
details.textClipping
file1
rsync: get_xattr_data: lgetxattr 
("details.textClipping","com.apple.ResourceFork",0) failed: No such  
file or directory (2)
Missing abbreviated xattr value, com.apple.ResourceFork, for "/Users/ 
alan/Desktop/folder2/.details.textClipping.SbLEk6"
total: matches=0  hash_hits=0  false_alarms=0 data=6154

sent 6646 bytes  received 72 bytes  13436.00 bytes/sec
total size is 6154  speedup is 0.92
rsync error: some files could not be transferred (code 23) at main.c 
(989) [sender=3.0.0cvs]

$ xattr --list  /Users/alan/Desktop/folder2/*

/Users/alan/Desktop/folder2/details.textClipping
         com.apple.FinderInfo    clptMACS
/Users/alan/Desktop/folder2/file1
         com.apple.FinderInfo
                        color    blue

===============================
Now if I repeat the Rsync it works!!!


$ rsync -avvX /Users/alan/Desktop/folder1/ /Users/alan/Desktop/folder2/

sending incremental file list
delta-transmission disabled for local transfer or --whole-file
.DS_Store is uptodate
details.textClipping is uptodate
file1 is uptodate
total: matches=0  hash_hits=0  false_alarms=0 data=0

sent 854 bytes  received 26 bytes  1760.00 bytes/sec
total size is 6154  speedup is 6.99

$ xattr --list  /Users/alan/Desktop/folder2/*

/Users/alan/Desktop/folder2/details.textClipping
           com.apple.FinderInfo  clptMACS
         com.apple.ResourceFork  <0000, 0000, 0x01, 0000, 0000, 0000,  
0x01, 0x6c, 0000, 0000, 0000, 0x6c, 0000, 0000, 0000, 0x6e, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0000, 0000, 0000,  
0x0e, 0000, 0x64, 0000, 0x65, 0000, 0x74, 0000, 0x61, 0000, 0x69,  
0000, 0x6c, 0000, 0x73, 0000, 0000, 0000, 0x07, 0x64, 0x65, 0x74,  
0x61, 0x69, 0x6c, 0x73, 0000, 0000, 0000, 0x40, 0000, 0000, 0000,  
0x01, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0x03, 0x75, 0x74, 0x66, 0x38, 0000, 0000, 0x01, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0x75, 0x74, 0x78, 0x74,  
0000, 0000, 0x01, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,  
0000, 0x54, 0x45, 0x58, 0x54, 0000, 0000, 0x01, 0000, 0000, 0000,  
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0x01, 0000, 0000,  
0000, 0x01, 0x6c, 0000, 0000, 0000, 0x6c, 0000, 0000, 0000, 0x6e,  
0000, 0x5f, 0x80, 0xac, 0x03, 0x0d, 0000, 0000, 0000, 0x1c, 0000,  
0x6e, 0000, 0x03, 0x75, 0x74, 0x66, 0x38, 0000, 0000, 0000, 0x22,  
0x75, 0x74, 0x78, 0x74, 0000, 0000, 0000, 0x2e, 0x54, 0x45, 0x58,  
0x54, 0000, 0000, 0000, 0x3a, 0x64, 0x72, 0x61, 0x67, 0000, 0000,  
0000, 0x46, 0x01, 0000, 0xff, 0xff, 0000, 0000, 0000, 0000, 0000,  
0x3f, 0xfa, 0x94, 0x01, 0000, 0xff, 0xff, 0000, 0000, 0000, 0x0b,  
0000, 0x3f, 0xfa, 0x98, 0x01, 0000, 0xff, 0xff, 0000, 0000, 0000,  
0x1d, 0000, 0x3f, 0xfa, 0x9c, 0000, 0x80, 0xff, 0xff, 0000, 0000,  
0000, 0x28, 0000, 0x3f, 0xfa, 0x90>
/Users/alan/Desktop/folder2/file1
         com.apple.FinderInfo
                        color    blue


And finally, the time on the TextClipping has changed

$ ls -lt /Users/alan/Desktop/folder1/*
-rw-r--r--   1 alan  alan  0 Mar 31 18:35 /Users/alan/Desktop/folder1/ 
details.textClipping
-rw-r--r--   1 alan  alan  6 Mar 31 18:05 /Users/alan/Desktop/folder1/ 
file1

$ ls -lt /Users/alan/Desktop/folder2/*
-rw-r--r--   1 alan  alan  0 Mar 31 18:50 /Users/alan/Desktop/folder2/ 
details.textClipping
-rw-r--r--   1 alan  alan  6 Mar 31 18:05 /Users/alan/Desktop/folder2/ 
file1






More information about the rsync mailing list