From: Eric Bollengier Date: Tue, 24 Mar 2009 14:01:59 +0000 (+0000) Subject: ebl Use MTIMEONLY fileset option in accurate check X-Git-Tag: Release-3.0.0~113 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c2a51813f4097236d7175dbd7db2fbc42dece2b8;p=bacula%2Fbacula 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 --- 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