[Samba] Fruit module configured to use matter still write ._* files

Nicolas Goy kuon at goyman.com
Mon Dec 21 16:44:52 UTC 2015


I have configured samba as follow:

[global]
workgroup = GOYMAN
netbios name = MATRIX
security = user
encrypt passwords = yes
smb passwd file = /var/db/samba4/private/passdb.ntdb
vfs objects = catia fruit streams_xattr
fruit:resource = xattr
fruit:metadata = netatalk
fruit:locking = netatalk
fruit:encoding = private

[projects]
path = /data/projects
write list = kuon, ino
force create mode = 0770
create mask = 0770


I expect "fruit:resource = xattr" to avoid the creation of ._ files, but I still get some.

If I add a tag with the OSX finder, the tag get stored as an extended attribute.

But I copied an illustrator file (.ai) and I got a ._ file generated alongside it. The thing is I also got some metadata on the file itself.

kuon at matrix /d/projects ❯❯❯ ls -la
drwxrwxrwx  20 kuon  users       24 Dec 22 00:38 .
drwxr-xr-x   9 root  wheel        9 Dec 19 09:18 ..
-rwxr--r--   1 kuon  users     8196 Dec 22 00:11 .DS_Store
-rwxrwxr--   1 kuon  users      443 Dec 22 00:17 ._layout.ai
-rwxrwxr--   1 kuon  users  1607888 Nov 18 11:39 layout.ai
kuon at matrix /d/projects ❯❯❯ lsextattr user layout.ai
layout.ai	netatalk.Metadata
kuon at matrix /d/projects ❯❯❯ getextattr user netatalk.Metadata layout.ai
layout.ai      b	z r�DEVv�INO~�SYN��SV~�PDF ART5��
                                                         E�
                                                           E
kuon at matrix /d/projects ❯❯❯ cat ._layout.ai
Netatalk        Ri	2 //:+�17!Saved As v.17 Created by v.19.1.0//:��2vers
Version%                                                                                                                                                    kuon at matrix /d/projects ❯❯❯


I'm using FreeBSD with ZFS, samba is 4.3.1


Thanks

--  
Nicolas Goy
Programmer



More information about the samba mailing list