[netatalk-ja:0391] Re: rsync -Eでもコピーされない._ファイルについて

Taiki Kimura taikimura8182 @ gmail.com
2014年 9月 26日 (金) 13:17:20 JST


HATさん


いつも詳細なご説明ありがとうございます!!
xlsxの件、quarantineの件、拡張属性が喪失したときの影響など諸々を理解しました。

で、早速こちらをためしてみました。

> 既に原因は判明しているので、たくさんチェックする必要はありません。
>
> まず、OS X上で、 Finder Infoと、Resource Forkと、本物の拡張属性が、
> 付いているファイルを用意してください、
>
> そのファイルをFinderを使って、OS XからNetatalkへコピーしてください。
> それをrsync -EでMac Miniにバックアップしてください。
>
> このファイルのFinder Infoと、Resource Forkと、本物の拡張属性が、
> 同一ならば、ちゃんとバックアップできています。
> これを確認してください。


1) Mavericksで作成したファイルの状態
-rw-r--r--@  1 kimura  staff          4  9 26 11:19 check_ea
com.apple.FinderInfo       32
com.apple.ResourceFork     1338
com.apple.TextEncoding       15

2) MavericksのFinderから拡張属性が有効になっていないCentOSのNetatalk3.0.4へコピー
$ lsattr check_ea
-------------e- check_ea
$ ls -ltra
-rwxrwxrwx  1 kimura  Domain Users    4  9月 26 11:19 2014 check_ea
-rwxrwxrwx  1 kimura  Domain Users 4096  9月 26 11:28 2014 ._check_ea
drwxrwsrwx  3 kimura  Domain Users 4096  9月 26 11:28 2014 .
drwxrwsrwx  2 kimura  Domain Users 4096  9月 26 11:28 2014 .AppleDouble
$ ls -ltra .AppleDouble/
合計 28
-rw-rw-rw- 1 kimura Domain Users  741  9月 18 17:25 2014 .Parent
drwxrwsrwx 3 kimura Domain Users 4096  9月 26 11:28 2014 ..
drwxrwsrwx 2 kimura Domain Users 4096  9月 26 11:28 2014 .
-rw-rw-rw- 1 kimura Domain Users 2079  9月 26 11:28 2014 check_ea
-rw-rw-rw- 1 kimura Domain Users  741  9月 26 11:28 2014 ._check_ea

3) Macminiから2)の状態のNetatalkボリュームをafpマウントし、Macminiからrsync -Eでコピー
 ls -ltra@
-rwxrwxrwx@ 1 hoge  staff    4 Sep 26 11:19 check_ea
com.apple.FinderInfo 32
com.apple.ResourceFork 1338
com.apple.TextEncoding 15

※com.apple.FinderInfo、com.apple.ResourceFork、com.apple.TextEncodingの3つを、
1)のものと比較し、 MacminiとMavericksからxattr -pで同一であることを確認!!


ここで、、、
一つ欲が出たので、4)と5)を試してみたのですが、
4)のケースにおいて、com.apple.FinderInfoが無いという状態が発生しました。
これは正常なことなのでしょうか??


以下結果の概要なのですが、判断が付かない状態です。。。。


4) Macminiから拡張属性を有効にしたCentOSのNetatalk3.1.6をafpマウントしrsync -Eでコピー
$ ls -ltra@
total 32
-rwxrwxrwx@ 1 hoge  staff    4 Sep 26 11:19 check_ea
com.apple.ResourceFork 1338
com.apple.TextEncoding 15

※com.apple.FinderInfoがないのです・・・

5) Macminiから拡張属性を有効にしたCentOSのNetatalk3.1.6へFinderからコピー
$ ls -ltra@
total 32
-rwxrwxrwx@ 1 hoge  staff    4 Sep 26 11:19 check_ea
com.apple.FinderInfo 32
com.apple.ResourceFork 1338
com.apple.TextEncoding 15

※Finderからコピーすると、ちゃんとcom.apple.FinderInfoがあるのです・・・


ちなみに、4)と5)をテストしたNetatalk3.1.6のafp.confは次の通りです。

--------------------------------------------------
; Netatalk 3.x configuration file

[Global]
uam list = uams_dhx2.so
ldap auth method = simple
ldap_server      = 192.168.10.11
ldap_auth_method = simple
ldap_auth_dn     = cn=manager,dc=hoge,dc=jp
ldap_auth_pw     = xxxxxxxxx
ldap_userbase    = ou=people,dc=hoge,dc=jp
ldap_userscope   = one
ldap_groupbase   = ou=groups,dc=hoge,dc=jp
ldap_groupscope  = one
ldap name attr = uid
ldap group attr = cn
log file = /var/log/netatalk3.log
log level = default:info

[CR-Docs2]
path = /share/Document
valid users = @hoge
file perm = 0777
directory perm = 0777
search db = yes
--------------------------------------------------

$ asip-status.pl localhost
AFP reply from localhost:548
Flags: 1  Cmd: 3  ID: 57005
Reply: DSIGetStatus
Request ID: 57005
Machine type: Netatalk3.1.6
AFP versions: AFP2.2,AFPX03,AFP3.1,AFP3.2,AFP3.3,AFP3.4
UAMs: DHX2
Volume Icon & Mask: Yes
Flags:
    SupportsCopyFile
    SupportsServerMessages
    SupportsServerSignature
    SupportsTCP/IP
    SupportsSrvrNotifications
    SupportsOpenDirectory
    SupportsUTF8Servername
    SupportsUUIDs
    SupportsExtSleep
    SupportsSuperClient
Server name: veau
Signature:
24 ac c1 58 03 d1 5f 49 37 b9 0c 48 86 24 81 73  $..X.._I7..H.$.s

Network address: 192.168.10.32 (TCP/IP address)
UTF8 Servername: veau
--------------------------------------------------

$ afpd -V
afpd 3.1.6 - Apple Filing Protocol (AFP) daemon of Netatalk

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version. Please see the file COPYING for further information and details.

afpd has been compiled with support for these features:

          AFP versions: 2.2 3.0 3.1 3.2 3.3 3.4
         CNID backends: dbd last tdb mysql
      Zeroconf support: Avahi
  TCP wrappers support: No
         Quota support: No
   Admin group support: Yes
    Valid shell checks: Yes
      cracklib support: No
            EA support: ad | sys
           ACL support: Yes
          LDAP support: Yes
         D-Bus support: No
     Spotlight support: No
         DTrace probes: No

              afp.conf: /usr/local/etc/afp.conf
           extmap.conf: /usr/local/etc/extmap.conf
       state directory: /usr/local/var/netatalk/
    afp_signature.conf: /usr/local/var/netatalk/afp_signature.conf
      afp_voluuid.conf: /usr/local/var/netatalk/afp_voluuid.conf
       UAM search path: /usr/local/lib/netatalk//
  Server messages path: /usr/local/var/netatalk/msg/


netatalk-ja メーリングリストの案内