From 412291fcb5a5cc8b9c179d968cb2f5aa8182a4ce Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 28 Mar 2009 17:49:36 +0000 Subject: [PATCH] Directly mark all files saved by plugin as being seen for Accurate git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8631 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/filed/fd_plugins.c | 3 +++ bacula/technotes | 1 + 2 files changed, 4 insertions(+) diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 67943bbf72..e484da73f2 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -284,6 +284,9 @@ int plugin_save(JCR *jcr, FF_PKT *ff_pkt, bool top_level) Dmsg1(dbglvl, "Save_file: file=%s\n", ff_pkt->fname); save_file(jcr, ff_pkt, true); bRC rc = plug_func(plugin)->endBackupFile(jcr->plugin_ctx); + if (rc == bRC_More || rc == bRC_OK) { + accurate_mark_file_as_seen(jcr, ff_pkt->fname); + } if (rc == bRC_More) { continue; } diff --git a/bacula/technotes b/bacula/technotes index 6f94b299ec..413b37f035 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -2,6 +2,7 @@ General: 28Mar09 +kes Directly mark all files saved by plugin as being seen for Accurate. kes Add checks on the plugin version and the plugin license. Currently only implemented for FD plugins. kes Add installation of /usr/share/doc/bacula-VERSION -- 2.39.5