From 7b9cea54c4bc0e7a2b105348274cf8686cd98b07 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 24 Mar 2009 14:01:59 +0000 Subject: [PATCH] ebl Use MTIMEONLY fileset option in accurate check git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8589 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/filed/accurate.c | 7 ++++++- bacula/technotes-2.5 | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index e7fd644720..bb98acadd6 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -177,12 +177,17 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) goto bail_out; } + /* + * We check only mtime/ctime like with the normal + * incremental/differential mode + */ if (elt.mtime != ff_pkt->statp.st_mtime) { // Jmsg(jcr, M_SAVED, 0, _("%s st_mtime differs\n"), fname); Dmsg3(dbglvl, "%s st_mtime differs (%i!=%i)\n", fname, elt.mtime, ff_pkt->statp.st_mtime); stat = true; - } else if (elt.ctime != ff_pkt->statp.st_ctime) { + } else if (!(ff_pkt->flags & FO_MTIMEONLY) + && (elt.ctime != ff_pkt->statp.st_ctime)) { // Jmsg(jcr, M_SAVED, 0, _("%s st_ctime differs\n"), fname); Dmsg3(dbglvl, "%s st_ctime differs\n", fname, elt.ctime, ff_pkt->statp.st_ctime); diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 05e49296e4..8e75c15de0 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -49,6 +49,8 @@ Code to be completed before 3.0.0 is released: General: +24Mar09 +ebl Use MTIMEONLY fileset option in accurate check 23Mar09 ebl Tweak code to compile win64 version with mingw 21Mar09 -- 2.39.5