Nicolas Goy
2015-Dec-21 16:44 UTC
[Samba] Fruit module configured to use matter still write ._* files
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
Ralph Boehme
2015-Dec-21 19:56 UTC
[Samba] Fruit module configured to use matter still write ._* files
On Mon, Dec 21, 2015 at 05:44:52PM +0100, Nicolas Goy wrote:> 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.cf man vfs_fruit:> I'm using FreeBSD with ZFS, samba is 4.3.1"fruit:resource = xattr" only works on Solaris or a Solaris descendant, because it not only requires support for xattrs of arbitrary size, but also that the POSIX file IO API (open, read, write asf) works with xattrs. -Ralph -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de,mailto:kontakt at sernet.de