Package: tmpreaper
Version: 1.6.5

I'm setting up tmpreaper via a hand-made script, not via
/etc/tmpreaper.conf, to cleanup some dirs in a samba share (one of this
was a recycle dir, made up with samba VFS recycle module).

Clearly i need --ctime options, because samba preserve atime and mtime
dates on moving/copying files into recycle...

The script simply run:

        tmpreaper --ctime --mtime-dir 14d /srv/users/Passaggi/

but does not work, eg you can see (a limited example on a subdir):

mouse:/srv/users/Passaggi# stat banca/RETRO.jpg
  File: `banca/RETRO.jpg'
  Size: 398741          Blocks: 784        IO Block: 4096   regular file
Device: 905h/2309d      Inode: 173246610   Links: 1
Access: (0644/-rw-r--r--)  Uid: (30001/SANVITO\walter)   Gid: 
(30002/SANVITO\ced)
Access: 2006-07-17 23:10:43.196063294 +0200
Modify: 2006-02-27 12:46:06.000000000 +0100
Change: 2006-03-06 10:40:13.799593529 +0100
mouse:/srv/users/Passaggi# /usr/sbin/tmpreaper --ctime --mtime-dir 14d 
/srv/users/Passaggi/banca
mouse:/srv/users/Passaggi# /usr/sbin/tmpreaper --verbose=3 --ctime --mtime-dir 
14d /srv/users/Passaggi/banca
debug: Grace period is `1209600' seconds.
debug: This is PID (24137) being run by UID (0), EUID (0).
debug: getcwd() is: /srv/users/Passaggi/banca
debug: Cleaning up directory /srv/users/Passaggi/banca'.
debug: safe_chdir() : Before chdir(), `dirname' is inode ­246595'.
debug: safe_chdir() : Before chdir(), `dirname' on device æ9'.
debug: safe_chdir() : After chdir(), `dirname' is inode ­246595'.
debug: safe_chdir() : After chdir(), `dirname' on device æ9'.
debug: (PID 24138) Found directory entry `backup_di_Grafica1.cdr'.
debug: (PID 24138) Found directory entry `backup_di_programma ditte.cdr'.
debug: (PID 24138) Found directory entry `backup_di_programma.cdr'.
debug: (PID 24138) Found directory entry `DEPLIANT PER COLLEGHI.pdf'.
debug: (PID 24138) Found directory entry `grafica1.cdr'.
debug: (PID 24138) Found directory entry `logo.jpg'.
debug: (PID 24138) Found directory entry `pieghevole onlus DITTE.pdf'.
debug: (PID 24138) Found directory entry `programma ditte.cdr'.
debug: (PID 24138) Found directory entry `programma ditte.pdf'.
debug: (PID 24138) Found directory entry `programma.cdr'.
debug: (PID 24138) Found directory entry `programma.pdf'.
debug: (PID 24138) Found directory entry `RETRO foligrana.jpg'.
debug: (PID 24138) Found directory entry `RETRO.jpg'.
debug: (PID 24138) Found directory entry `Thumbs.db'.
debug: (PID 24138) Found directory entry `Villamanin.jpg'.
mouse:/srv/users/Passaggi# stat banca/RETRO.jpg
  File: `banca/RETRO.jpg'
  Size: 398741          Blocks: 784        IO Block: 4096   regular file
Device: 905h/2309d      Inode: 173246610   Links: 1
Access: (0644/-rw-r--r--)  Uid: (30001/SANVITO\walter)   Gid: 
(30002/SANVITO\ced)
Access: 2006-07-17 23:10:43.196063294 +0200
Modify: 2006-02-27 12:46:06.000000000 +0100
Change: 2006-03-06 10:40:13.799593529 +0100


The only way i can remove file is to use --mtime options, but clearly
this is not viable for a recycle.

As you can see this is not bug #353477
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=353477), i'm not
using the --force option.

Note also that ctime seems OK, eg:

mouse:/srv/users/Passaggi# find /srv/users/Passaggi/banca -type f -ctime +14
/srv/users/Passaggi/banca/Backup_di_Grafica1.cdr
/srv/users/Passaggi/banca/Backup_di_programma ditte.cdr
/srv/users/Passaggi/banca/Backup_di_programma.cdr
/srv/users/Passaggi/banca/DEPLIANT PER COLLEGHI.pdf
/srv/users/Passaggi/banca/Grafica1.cdr
/srv/users/Passaggi/banca/Logo.jpg
/srv/users/Passaggi/banca/pieghevole onlus DITTE.pdf
/srv/users/Passaggi/banca/programma ditte.cdr
/srv/users/Passaggi/banca/programma ditte.pdf
/srv/users/Passaggi/banca/programma.cdr
/srv/users/Passaggi/banca/programma.pdf
/srv/users/Passaggi/banca/RETRO foligrana.jpg
/srv/users/Passaggi/banca/RETRO.jpg
/srv/users/Passaggi/banca/Thumbs.db
/srv/users/Passaggi/banca/Villamanin.jpg


I'm using a plain debian sarge box, custom 2.6 kernel compiled by hand,
nothing special done; all this stuff are on a XFS filesystem:

        /dev/md5 on /srv type xfs (rw,noexec,nodev)

and with POSIX ACL enabled.


Many thanks.

-- 
dott. Marco Gaiarin                                 GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it      tel +39-0434-842711  fax +39-0434-842797


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to