[Samba] vfs_recycle throwing errors when files are deleted by a Mac on a share with vfs_fruit enabled

Samba List samba at smartcrew.cloud
Fri Jul 26 15:13:57 UTC 2019


Hi,

My log files are being flooded with errors like the ones below whenever a
Mac delete files from a Samba share.

[2019/07/26 14:02:26.182564,  0]
../source3/modules/vfs_recycle.c:243(recycle_get_file_size)
  recycle: stat for Chris_Mac/._videos.docx returned No such file or
directory

[2019/07/26 14:02:27.186472,  0]
../source3/modules/vfs_recycle.c:243(recycle_get_file_size)
  recycle: stat for Chris_Mac/._Pollay.pdf returned No such file or
directory

[2019/07/26 15:52:11.165328,  0]
../source3/modules/vfs_recycle.c:243(recycle_get_file_size)
  recycle: stat for temp/._checklist.pdf returned No such file or directory

I tried without success different options for fruit:metadata and
fruit:resource.

I'm including the Global and share sections of my SMB.CONF files below.

I would appreciate if anybody could shed a light on what I may be doing
wrong.

Regards

=======

Server CentOS 7.6
Samba Version 4.8.3
Filesystem EXT4

Client Mac OS 10.14.5

**** SMB.CONF ***

[global]
;       Most Windows systems default to WORKGROUP
        workgroup = WORKGROUP
        server string = Samba Server Version %v
        netbios name = PIXIES

        interfaces = lo 192.168.0.0/24
        hosts allow = 127. 192.168.0.
        hostname lookups = yes

        log file = /var/log/samba/samba.log.%m
        max log size = 50

        security = user
        passdb backend = tdbsam
        guest account = nobody
        load printers = no

        fruit:aapl = yes
        fruit:nfs_aces = no
        unix extensions = no

[User]
        comment = User Files
        path = /share/samba/user
        directory mask = 0775
        create mask = 0774
        force directory mode = 0775
        force create mode = 0774
        writable = yes
        browseable = yes
        guest ok = no
        write list = @home
        valid users = @home, macuser, pcuser

        veto files =
/.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash
Folder/Temporary
Items/TheVolumeSettingsFolder/. at __thumb/. at __desc/:2e*/. at __qini/. at upload_cache/. at qsys/.digest/
        delete veto files = yes

        vfs objects = catia fruit streams_xattr recycle
        ea support = yes
        fruit:aapl = yes
        fruit:encoding = native
        fruit:locking = none
        fruit:metadata = stream
        fruit:resource = file

        recycle:repository = @RecycleBin
        recycle:directory_mode = 2775
        recycle:keeptree = yes
        recycle:versions = yes
        recycle:touch = yes
        recycle:exclude =
*.tmp,*.temp,*.o,*.obj,~$*,*.~??,~*.*,*.TMP,*.TEMP,lock.*,.~lock.*,LOCK.*,*.lock,*.~lock,*.LNK,*.lnk,*.ldb,._*
        recycle:minsize = 1


More information about the samba mailing list