Linux Samba Server - Improve Mac Client Performance
bartron on 1/29/2022
You can make a change in MacOS to prevent it from creating a .DS_Store file to store file info on SMB network shares. In the terminal, you can enter this command and restart MacOS. To reverse, change TRUE to FALSE:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
This was on Ubuntu 20.04, with Samba 4.13, but should work on any modern distro. In the [globa] section of /etc/samba/smb.conf, add these parameters to active the fruit module in Samba:
ea support = yes
min protocol = SMB2
vfs objects = fruit streams_xattr
fruit:metadata = stream
fruit:model = MacSamba
fruit:veto_appledouble = no
fruit:posix_rename = yes
fruit:zero_file_id = yes
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
fruit:nfs_aces = no
Restart Samba to have it take effect.