[Samba] fruit:resource=stream on ZFS safety?
Chad William Seys
cwseys at physics.wisc.edu
Mon Feb 17 17:03:22 UTC 2020
Hi Mike and all,
I still see ._ files with fruit:resource=xattr and not with
fruit:resource=stream.
Try extracting the attached zip file using a macintosh on the samba
share. (Sounds dangerous, right?!)
With fruit:resource=xattr
# ls -al
total 537
drwxrwx---+ 2 cwseys cwseys 9 Feb 17 09:57 .
drwxrwx---+ 3 cwseys cwseys 5 Feb 17 09:57 ..
-rwxrwxr--+ 1 cwseys cwseys 20120 Feb 17 09:57 'directory listing.png'
-rwxrwxr--+ 1 cwseys cwseys 6148 Feb 17 09:57 .DS_Store
-rwxrwxr--+ 1 cwseys cwseys 61808 Feb 17 09:57 '._RF=151KB Extension'
-rwxrwxr--+ 1 cwseys cwseys 543239 Feb 17 09:57 'RF=151KB Extension'
-rwxrwxr--+ 1 cwseys cwseys 4488 Feb 17 09:57 '._RF=4KB ReadMe'
-rwxrwxr--+ 1 cwseys cwseys 3519 Feb 17 09:57 'RF=4KB ReadMe'
-rwxrwxr--+ 1 cwseys cwseys 174806 Feb 17 09:57 'what the readme should
look like.png'
With fruit:resource=stream the directory looks the same as if it had
been extracted on Macintosh local filesystem. (The readme does not
display as shown by 'what the readme should look like.png' when opened
from either samba share or local Macintosh file system, so ignore that?)
# ls -al resourceForkTest/
total 517
drwxrwx---+ 2 cwseys cwseys 7 Feb 17 10:13 .
drwxrwx---+ 3 cwseys cwseys 5 Feb 17 10:13 ..
-rwxrwxr--+ 1 cwseys cwseys 20120 Feb 17 10:13 'directory listing.png'
-rwxrwxr--+ 1 cwseys cwseys 6148 Feb 17 10:13 .DS_Store
-rwxrwxr--+ 1 cwseys cwseys 543239 Feb 17 10:13 'RF=151KB Extension'
-rwxrwxr--+ 1 cwseys cwseys 3519 Feb 17 10:13 'RF=4KB ReadMe'
-rwxrwxr--+ 1 cwseys cwseys 174806 Feb 17 10:13 'what the readme should
look like.png'
Some debug info:
Samba 4.9.18, zfs 0.8.3
# zfs get xattr tank/home_cwseys
NAME PROPERTY VALUE SOURCE
tank/home_cwseys xattr sa local
Relevant smb.conf
# global
fruit:nfs_aces = no
[share]
inherit acls = Yes
inherit permissions = Yes
path = /srv/smb
vfs objects = full_audit catia fruit streams_xattr
fruit:veto_appledouble = no
fruit:resource = stream
fruit:metadata = stream
fruit:encoding = native
Let me know your thoughts b/c I'd rather not use something marked
'experimental' !
Thanks!
Chad.
More information about the samba
mailing list