[Samba] vfs_fruit: xattr imcompatible with netatalk

HAT hat at fa2.so-net.ne.jp
Sun Dec 27 03:32:58 UTC 2015


> you need "ea support = yes".

ok! solved.

On Fedora: -----------------------------------------------------

$ cat /etc/samba/smb.conf | grep -v \; | grep -v \# | grep -v ^$
[global]
        workgroup = LOCALNET
        server string = %h
        dos charset = CP932
        log file = /var/log/samba/log.%m
        max log size = 50
        security = user
        passdb backend = smbpasswd
        load printers = yes
        cups options = raw
[Test 1]
      path = /export/test1/
      writable = yes
      vfs objects = catia fruit streams_xattr
      fruit:locking = netatalk
      fruit:encoding = native
      streams_xattr:prefix = user.
      streams_xattr:store_stream_type = no
      ea support = yes

$ getfattr ICONandEA.txt
# file: ICONandEA.txt
user.com.apple.TextEncoding
user.com.apple.metadata:kMDItemFinderComment
user.org.netatalk.Metadata

On OS X: --------------------------------------------------------

$ xattr ICONandEA.txt
com.apple.FinderInfo
com.apple.ResourceFork
com.apple.TextEncoding
org.netatalk.Metadata
com.apple.metadata:kMDItemFinderComment

On Windows 7: ---------------------------------------------------------

Z:\>dir /r ICONandEA.txt
 Volume in drive Z is Test 1
 Volume Serial Number is DA11-AA00

 Directory of Z:\

2010/01/10  00:14               225 ICONandEA.txt
                                 60 ICONandEA.txt:AFP_AfpInfo:$DATA
                              4,764 ICONandEA.txt:AFP_Resource:$DATA
                                 15 ICONandEA.txt:com.apple.TextEncoding:$DATA
                                401 ICONandEA.txt:org.netatalk.Metadata:$DATA
                                 81 ICONandEA.txt:com.apple.metadata?kMDItemFinderComment:$DATA
               1 File(s)            225 bytes
               0 Dir(s)  59,059,187,712 bytes free

---------------------------------------------------------

I'm going to test "ea = samba" of netatalk 3.1.8dev.

Thanks.

-- 
HAT



More information about the samba mailing list