From 089f44cd0dd3541375eec9fec7faa7c4c6d13509 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 10 Jun 2006 13:41:47 +0000 Subject: [PATCH] file_deleter: if deleting antique files, follow links when finding the files. This allows NFS mounting of the upload directory, pointed to by a symbolic link. svn path=/trunk/boinc/; revision=10302 --- checkin_notes | 5 +++++ sched/file_deleter.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index b2f02c08fb..d70aba5854 100755 --- a/checkin_notes +++ b/checkin_notes @@ -5786,6 +5786,10 @@ Bruce 10 June 2006 WU.rsc_fpops_est field. This can be useful in determining how much credit to assign, and preventing cheating. + - file_deleter: if deleting antique files, follow links when + finding the files. This allows NFS mounting of the upload + directory, pointed to by a symbolic link. + DAVID: I was going to be a good guy and document this, but you forgot to check validate_simple.php and validate_advanced.php into CVS (:-). @@ -5803,4 +5807,5 @@ Bruce 10 June 2006 feeder.C validate_util.C validate_util2.C + file_deleter.C diff --git a/sched/file_deleter.C b/sched/file_deleter.C index 7c754f8525..46ef2b5862 100644 --- a/sched/file_deleter.C +++ b/sched/file_deleter.C @@ -386,7 +386,7 @@ int add_antiques_to_list(int days) { return -1; } - sprintf(command, "find %s -type f -mtime +%d", config.upload_dir, days); + sprintf(command, "find %s -type f -mtime +%d -follow", config.upload_dir, days); // Now execute the command, read output on a stream. We could use // find to also exec a 'delete' command. But we want to log all