If I share out the recycling directory, despite exclude settings in smb.conf, if I mount the recycling directory from Windows and then delete a file, it burrows it further into the recycling directory.
From my smb.conf:
vfs objects = recycle
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:exclude = ?~$*,~$*,*.tmp,index*.pl,index*.htm*,*.temp,*.TMP
recycle:repository = /path/to/srv/recycle/%U/%P
recycle:noversions = *.doc,*.xls,*.ppt
comment = your network-deleted files; stale files auto-deleted after 60 days, or 14 days if over 50 MB
path = /path/to/srv/recycle/%U/%P/path/to/srv
Steps to Reproduce (from Windows 2k3 or XP client):
1) Mount recycle as R:
2) Delete a file from another mounted drive; in this e.g., user's home drive H:
3) It appears in R:\users\me, correctly.
4) Delete it from R:\users\me.
Actual Results: Instead of being ignored due to the smb.conf rule "recycle:exclude_dir", it appears in R:\recycle\me\path\to\srv\users\Me.
Expected Results: To not see the file deleted from R:, anywhere, anymore.
Build & Platform: SerNet Samba 4.0.9 on CentOS 6.4 x86_64