Ezra Pound
Well-Known Member
Is there a undelete.log or any debug available for viewing as I am trying to sort out why only some of the files in my [Deleted] directory are being auto deleted
I am not familiar with trm and it isn't implemented on Centos 5.7 which my servers are currently using. Purely as a matter of interest, how does it differ from rm and where can I read about it?It uses the trm command rather than just rm because it is nicer to the Humax..
Thanks. Is it part of Busybox or the linux distribution that the Humax uses or specially written?trm is Truncate ReMove, It deletes in 'chunks', There is a bit of info. on the WiKi
Thanks. Is it part of Busybox or the linux distribution that the Humax uses or specially written?
Thanks.It's not part of Busybox, I think it was written / Complied by af123 it uses Truncate64 some info HERE.
humax# cd /var/log
humax# ls -al
drwxrwxrwt 2 root root 280 Feb 6 19:09 .
drwxr-xr-x 18 root root 192 Jan 10 09:10 ..
-rw-r--r-- 1 root root 0 Jan 1 2000 .humaxtv.running
-rw-rw-rw- 1 root root 0 Feb 6 13:06 .modinit.done
-rw-r--r-- 1 root root 4 Jan 1 2000 dnsmasq.pid
-rw-rw-rw- 1 root root 2103 Feb 6 18:58 epgd.log
-rw-rw-rw- 1 root root 37 Feb 6 13:06 hosts
-rw-rw-rw- 1 root root 0 Feb 6 13:06 if-up
-rw-r--r-- 1 root root 6 Jan 1 2000 ifstate
-rw-rw-rw- 1 root root 4614 Feb 6 13:06 modinit.log
-rw-rw-rw- 1 root root 240 Feb 6 17:02 mongoose_error.log
-rw-rw-rw- 1 root root 2392 Feb 6 13:06 rag.log
-rw-r--r-- 1 root root 311 Jan 1 2000 rsvsync.log
-rw-r--r-- 1 root root 0 Jan 1 2000 xinit.log
humax#
humax# ls -al
drwxr-xr-x 2 root root 4096 Feb 5 23:28 .
drwxr-xr-x 11 root root 4096 Feb 7 00:40 ..
-rw-r--r-- 1 root root 2072 Feb 5 23:28 Click_20120204_0130.hmt
-rw-r--r-- 1 root root 1434496 Feb 5 23:28 Click_20120204_0130.nts
-rw-r--r-- 1 root root 43680 Feb 5 23:28 Click_20120204_0130.thm
-rw-r--r-- 1 root root 788127744 Feb 5 23:28 Click_20120204_0130.ts
humax# date
Tue Feb 7 16:17:07 GMT 2012
humax# find . -type f -mtime +1
humax#
drwxr-xr-x 11 root root 4096 Feb 7 00:40 .
drwxr-xr-x 11 root root 4096 Feb 7 00:40 ..
drwxr-xr-x 2 root root 4096 Feb 6 21:26 An Island Parish
drwxr-xr-x 2 root root 4096 Feb 5 23:28 Click
drwxr-xr-x 2 root root 4096 Feb 6 21:53 Cornwall with Caroline Quentin
drwxr-xr-x 2 root root 4096 Feb 6 19:28 Helen's Polar Challenge for___
drwxr-xr-x 2 root root 4096 Feb 6 19:42 Ocean Giants
drwxr-xr-x 2 root root 4096 Feb 7 00:40 The Diamond Queen
drwxr-xr-x 2 root root 4096 Feb 5 20:04 The Jonathan Ross Show
drwxr-xr-x 2 root root 4096 Feb 5 22:56 The Singing Detective
drwxr-xr-x 2 root root 4096 Feb 6 20:39 University Challenge
humax#
humax# find . -type f
./Click_20120204_0130.nts
./Click_20120204_0130.thm
./Click_20120204_0130.ts
./Click_20120204_0130.hmt
humax#
humax# touch .
humax# ls -ld .
drwxr-xr-x 2 root root 4096 Feb 7 22:20 .
humax# ls -l
-rw-r--r-- 1 root root 2072 Feb 1 22:04 Suits_20120131_2100.hmt
-rw-r--r-- 1 root root 2873248 Feb 1 22:04 Suits_20120131_2100.nts
-rw-r--r-- 1 root root 43680 Feb 1 22:04 Suits_20120131_2100.thm
-rw-r--r-- 1 root root 1069817856 Feb 1 22:04 Suits_20120131_2100.ts
humax# find . -type f -mtime +5
./Suits_20120131_2100.hmt
./Suits_20120131_2100.ts
./Suits_20120131_2100.thm
./Suits_20120131_2100.nts
humax# find . -type f -mtime +6
humax#
humax# opkg install coreutils
humax# /mod/bin/touch -t 201202052100 Suits_20120131_2100.ts
humax# ls -l
-rw-r--r-- 1 root root 2072 Feb 1 22:04 Suits_20120131_2100.hmt
-rw-r--r-- 1 root root 2873248 Feb 1 22:04 Suits_20120131_2100.nts
-rw-r--r-- 1 root root 43680 Feb 1 22:04 Suits_20120131_2100.thm
-rw-r--r-- 1 root root 1069817856 Feb 5 21:00 Suits_20120131_2100.ts
humax# find . -type f -mtime +5
./Suits_20120131_2100.hmt
./Suits_20120131_2100.thm
./Suits_20120131_2100.nts
humax# opkg install coreutils
Installing coreutils (8.11) to root...
Downloading http://hummypkg.org.uk/hdrfoxt2/base/coreutils_8.11_mipsel.opk.
Configuring coreutils.
humax# /mod/bin/touch -t 201202042328 Click_20120204_0130.ts
humax# ls -al
drwxr-xr-x 2 root root 4096 Feb 5 23:28 .
drwxr-xr-x 11 root root 4096 Feb 7 00:40 ..
-rw-r--r-- 1 root root 2072 Feb 5 23:28 Click_20120204_0130.hmt
-rw-r--r-- 1 root root 1434496 Feb 5 23:28 Click_20120204_0130.nts
-rw-r--r-- 1 root root 43680 Feb 5 23:28 Click_20120204_0130.thm
-rw-r--r-- 1 root root 788127744 Feb 4 23:28 Click_20120204_0130.ts
humax# find . -type f -mtime +1
./Click_20120204_0130.ts
humax#
ACTF(mtime)
{
time_t file_age = time(NULL) - statbuf->st_mtime;
time_t mtime_secs = ap->mtime_days * 24*60*60;
if (ap->mtime_char == '+')
return file_age >= mtime_secs + 24*60*60;
...