Trunas Scale - SMB share and Macos Finder tags

gvagenas

Cadet
Joined
Jun 22, 2022
Messages
3
Hi guys,

I have an issue with MacOs Finder tags, where applying a tag on a file or folder seems to be applied properly (no error) but trying to get these files/folders later it gives me an empty list - no files returned when I click on the tag I used on the files.

MacOs Finder tags was used to work properly with Synology SMB share but with Truenas Scale not working any more.

I have checked forum for related issues and tried to change SMB setup with no lack.

Here are the details:

* MacOS version: Monterey 12.4
* MacOS user: gvagenas
* Truenas Scale version: TrueNAS-SCALE-22.02.2
* testparm -s:
Load smb config files from /etc/smb4.conf
lpcfg_do_global_parameter: WARNING: The "syslog only" option is deprecated
Loaded services file OK.
Weak crypto is allowed

Server role: ROLE_STANDALONE

# Global parameters
[global]
bind interfaces only = Yes
disable spoolss = Yes
dns proxy = No
load printers = No
logging = file
max log size = 5120
passdb backend = tdbsam:/var/run/samba-cache/passdb.tdb
printcap name = /dev/null
registry shares = Yes
restrict anonymous = 2
server min protocol = SMB2
server multi channel support = No
server string = TrueNAS Server
#fruit:veto_appledouble = no
idmap config * : range = 90000001 - 100000000
fruit:model = MacSamba
fruit:nfs_aces = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:resource = stream
fruit:posix_rename = yes
fruit:delete_empty_adfiles = yes
idmap config * : backend = tdb
create mask = 0775
directory mask = 0775


[smbshare]
comment = Samba Share
kernel share modes = No
path = /mnt/pool1/smb_share
posix locking = No
read only = No
smbd max xattr size = 2097152
vfs objects = fruit streams_xattr shadow_copy_zfs nfs4acl_xattr zfs_core io_uring
tn:vuid = 57a56211-fd5d-411d-b48e-a690b36d792f
fruit:time machine max size = 0
fruit:time machine = False
fruit:resource = stream
fruit:metadata = stream
nfs4:chown = True
nfs4acl_xattr:encoding = xdr
nfs4acl_xattr:xattr_name = system.nfs4_acl_xdr
nfs4acl_xattr:validate_mode = False
nfs4acl_xattr:nfs4_id_numeric = True
tn:home = False
tn:path_suffix =
tn:purpose = DEFAULT_SHARE
* ACL mode of storage
zfs get aclmode /mnt/pool1/smb_share
NAME PROPERTY VALUE SOURCE
pool1/smb_share aclmode passthrough local
* Permissions of a folder I need to tag:
drwxrwxrwx 18 gvagenas users 19 Jul 4 23:47 Documents
* Macos spotlight indexing status:
/:
Indexing enabled.
/System/Volumes/Data:
Indexing enabled.
/Volumes/smbshare: <-- This is the mounted SMB share
Indexing enabled.

Can you please share some ideas here.

Thanks
George
 

gvagenas

Cadet
Joined
Jun 22, 2022
Messages
3
When I apply "Yellow" tag on a file in the SMB share, I am checking attribute on the server and I get:
getfattr -e 'base64' --only-values -d test.txt
AFP
bplist00XYellow
5
after I remove the tag:
getfattr -e 'base64' --only-values -d test.txt
AFP*V̰bplist00 #

So it seems that the tag is properly added or removed from the file in the SMB share.
Seems that the problem is on the MacOS side.

Any suggestions?

Thanks
 
Top