HAT | 29 May 2012 17:31
Picon
Gravatar

lost resource fork

When copying a file with custom icon to netatalk 3.0beta1 (OpenIndiana 151a),
the file on netatalk also has custom icon.
However, when copying it to Mac again, the icon is lost!

http://www003.upp.so-net.ne.jp/hat/netatalk/losticon.png

1st file on Mac

   $ xattr test.txt 
   com.apple.FinderInfo
   com.apple.ResourceFork
   com.apple.TextEncoding

2nd file seen from Mac

   $ cd /Volumes/hat\'s\ home/2ndFile
   $ xattr test.txt
   com.apple.FinderInfo
   com.apple.TextEncoding

2nd file on OpenIndiana

   $ runat test.txt ls -1
   com.apple.TextEncoding
   org.netatalk.Metadata
   org.netatalk.ResourceFork
   SUNWattr_ro
   SUNWattr_rw

3rd file on Mac
(Continue reading)

HAT | 29 May 2012 18:05
Picon
Gravatar

Re: lost resource fork

additional info.
Resource fork can be read although not listed.

$ cd /Volumes/hat\'s\ home/2ndFile

$ xattr test.txt 
com.apple.FinderInfo
com.apple.TextEncoding

$ xattr -p -l com.apple.ResourceFork test.txt
com.apple.ResourceFork:
00000000  00 00 01 00 00 00 E2 94 00 00 E1 94 00 00 00 32  |...............2|
00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000040  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000000A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000000B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000000C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000000D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000000E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000000F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000100  00 00 E1 90 69 63 6E 73 00 00 E1 90 54 4F 43 20  |....icns....TOC |
00000110  00 00 00 58 69 73 33 32 00 00 02 84 73 38 6D 6B  |...Xis32....s8mk|
00000120  00 00 01 08 69 63 73 62 00 00 03 11 69 6C 33 32  |....icsb....il32|
(Continue reading)

Frank Lahm | 30 May 2012 12:18

Re: lost resource fork

2012/5/29 HAT <hat <at> fa2.so-net.ne.jp>:
> When copying a file with custom icon to netatalk 3.0beta1 (OpenIndiana 151a),
> the file on netatalk also has custom icon.
> However, when copying it to Mac again, the icon is lost!
>
> http://www003.upp.so-net.ne.jp/hat/netatalk/losticon.png
>
> 1st file on Mac
>
>   $ xattr test.txt
>   com.apple.FinderInfo
>   com.apple.ResourceFork
>   com.apple.TextEncoding
>
> 2nd file seen from Mac
>
>   $ cd /Volumes/hat\'s\ home/2ndFile
>   $ xattr test.txt
>   com.apple.FinderInfo
>   com.apple.TextEncoding
>
> 2nd file on OpenIndiana
>
>   $ runat test.txt ls -1
>   com.apple.TextEncoding
>   org.netatalk.Metadata
>   org.netatalk.ResourceFork
>   SUNWattr_ro
>   SUNWattr_rw
>
(Continue reading)

HAT | 31 May 2012 15:30
Picon
Gravatar

Re: lost resource fork

From: Frank Lahm <franklahm <at> googlemail.com>, 30 May 2012 12:18:25 +0200
> 2012/5/29 HAT <hat <at> fa2.so-net.ne.jp>:
>> When copying a file with custom icon to netatalk 3.0beta1 (OpenIndiana 151a),
>> the file on netatalk also has custom icon.
>> However, when copying it to Mac again, the icon is lost!

> Good catch!
> 
> I've just committed b4c7dd2 which should fix this. Can you test it and
> report back please? This is an important fix so we'll have to release
> a beta2 soon.

I checked it.
no problem.

--

-- 
HAT

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Frank Lahm | 31 May 2012 15:32

Re: lost resource fork

2012/5/31 HAT <hat <at> fa2.so-net.ne.jp>:
> From: Frank Lahm <franklahm <at> googlemail.com>, 30 May 2012 12:18:25 +0200
>> 2012/5/29 HAT <hat <at> fa2.so-net.ne.jp>:
>>> When copying a file with custom icon to netatalk 3.0beta1 (OpenIndiana 151a),
>>> the file on netatalk also has custom icon.
>>> However, when copying it to Mac again, the icon is lost!
>
>> Good catch!
>>
>> I've just committed b4c7dd2 which should fix this. Can you test it and
>> report back please? This is an important fix so we'll have to release
>> a beta2 soon.
>
> I checked it.
> no problem.

Thanks.
-f

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane