From: HAT <ha...@fa...> - 2010-04-18 14:33:22
|
>>>>>> xxx.txt: error code -50 >>>>>> yyy.txt: ok >>>>> >>>>> Ok, I can reproduce the problem with the file "xxx.txt". What the heck >>>>> is the difference between both? I mean afaics they only differ in the >>>>> _content_ of the EA: >>>>> >>>>> $ xattr -l /Volumes/testfilevol/yyy.txt >>>>> com.apple.metadata:kMDItemFinderComment: >>>>> 00000000 62 70 6C 69 73 74 30 30 50 08 00 00 00 00 00 00 |bplist00P.......| >>>>> 00000010 01 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 |................| >>>>> 00000020 00 00 00 00 00 00 00 00 00 09 |..........| >>>>> 0000002a >>>>> $ xattr -l /Volumes/testfilevol/xxx.txt >>>>> com.apple.metadata:kMDItemFinderComment: >>>>> 00000000 62 70 6C 69 73 74 30 30 53 78 78 78 08 00 00 00 |bplist00Sxxx....| >>>>> 00000010 00 00 00 01 01 00 00 00 00 00 00 00 01 00 00 00 |................| >>>>> 00000020 00 00 00 00 00 00 00 00 00 00 00 00 0C |.............| >>>>> 0000002d >>>> >>>> xxx.txt: >>>> write "Spotlight Comments" by using "Get Info". >>>> >>>> yyy.txt: >>>> write "Spotlight Comments" by using "Get Info" >>>> and delete it. >>> >>> Yeah, thanks! Meanwhile I had discovered that one too plus what it >>> triggers. The Finder tries to set the EA twice form xxx.txt. The >>> second attempt fails because the EA already exists. These command in >>> terminal.app reproduce the same issue: >>> $ cd /Volumes/netatalk_volume_with_ea_ad >>> $ touch file >>> $ xattr -w test bla file >>> $ xattr -w test blub file >>> xattr: [Errno 22] Invalid argument: 'file' >>> >>> At least from looking at the nettrace of xattr it _might_ be a bug in >>> the client. >> >> No, of course it's not. I've just messed up the flags. I'll fix it tomorrow. > > Done. Can you test it please? I tested it. It runs well. -- HAT |