Bug 5743 - recycle:touch_mtime or recycle:touch do not function
recycle:touch_mtime or recycle:touch do not function
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: VFS
3.0.31
All Windows XP
: P3 major
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-08 10:38 UTC by David Herselman
Modified: 2008-12-12 05:53 UTC (History)
0 users

See Also:


Attachments
recycle:touch patch backported from SVN SAMBA_3_2_0 r23691 (GPLv2) (1.18 KB, patch)
2008-12-12 05:53 UTC, SATOH Fumiyasu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Herselman 2008-09-08 10:38:55 UTC
Sample share from smb.conf:
[homes]
   comment = User Directory
   guest ok = no
   browseable = no
   writeable = yes
   printable = no
   valid users = %S
   create mode = 0600
   directory mode = 0700
   force group = users
   vfs objects = recycle
      recycle:repository = .recycle
      recycle:keeptree  = yes
      recycle:touch = yes
      recycle:versions = yes
      recycle:maxsize = 0
      recycle:exclude = *.tmp *.temp *.bkf *.~?? ~$*
      recycle:exclude_dir = /tmp
      recycle:noversions = *.pst

Cleanup script which is run daily:
find /home/*/.recycle -type f -mtime +7 -print0 | xargs -r0 rm -f;
find /home/*/.recycle -type d -empty -printf '"%p"\n' | \
  grep -v .recycle\"$ | xargs -r rmdir;


Recycle bin works perfectly except that it doesn't 'touch' files moved to
the recycle bin. All old files are subsequently immediately removed...

PS: Could try and write this with the '-atime' find parametre but it would
    then never age as we run a 'chmod 770' on the .recycle share nigthly...
Comment 1 SATOH Fumiyasu 2008-12-12 05:53:13 UTC
Created attachment 3808 [details]
recycle:touch patch backported from SVN SAMBA_3_2_0 r23691 (GPLv2)

This is a duplicate of bug #4983.