When using "fruit" in an SMB share, ea support = yes or no?

Joined
Apr 2, 2018
Messages
6
Hi,
on my system (see signature), I'm running FreeNAS-11.3-U1
with Samba enabled, providing 3 SMB shares to both Windows 10 and macOS Catalina (10.15)
and I have therefore enabled in each share the VFS obejct "fruit" (plus its dependencies catia and streams_xattr).

From this article https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X
I see that

Apple extensions require support for extended attributes(xattr) - defaults to yes in Samba 4.9+:
ea support = yes

By searching on the forum, I've found that by default Samba in FreeNAS has
ea support = yes
store dos attributes = yes

and that, since FreeNAS 11.1, in streams_xattr the ea support has been de-coupled from Alternate Data Stream (ADS), it should be safe to set "ea support=no"

However, when checking the Samba configuration with testparm -v
I see that the shares' configuration generated by the GUI is disabling ea support


Code:
# Global parameters
[global]

    ea support = Yes
    store dos attributes = Yes
    
[backups]
    aio write size = 0
    ea support = No
    hide dot files = No
    mangled names = illegal
    path = /mnt/raid1/backups
    read only = No
    vfs objects = catia zfs_space zfsacl fruit streams_xattr crossrename recycle
    nfs4:acedup = merge
    nfs4:chown = true
    recycle:subdir_mode = 0700
    recycle:directory_mode = 0777
    recycle:touch = yes
    recycle:keepversions = yes
    recycle:keeptree = yes
    recycle:repository = .recycle/%U
    fruit:resource = stream
    fruit:metadata = stream



So, long story short:
1) Is ea support = yes still needed if streams_xattr (due to fruit) is enabled?
2) What is the reason why the share configuration is setting ea support = No, overriding the general setting?

Thanks
 
Joined
Apr 2, 2018
Messages
6
up

Thanks in advance
 

seanm

Guru
Joined
Jun 11, 2018
Messages
570
I don't really have any answer for you, but for me, "ea support = No" is indeed set for every share, but it's not set to anything in my global section.
 
Top