From 869b100aa4f707fe131ad2bbe95db717a4e05be5 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 13 Feb 2008 22:01:28 +0000 Subject: [PATCH] ebl First cut of accurate patch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6415 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/dird_conf.c | 4 ++++ bacula/src/dird/dird_conf.h | 1 + bacula/src/jcr.h | 1 + 3 files changed, 6 insertions(+) diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c index 3b34cc50d1..e31f5c718c 100644 --- a/bacula/src/dird/dird_conf.c +++ b/bacula/src/dird/dird_conf.c @@ -319,6 +319,7 @@ RES_ITEM job_items[] = { {"selectionpattern", store_str, ITEM(res_job.selection_pattern), 0, 0, 0}, {"runscript", store_runscript, ITEM(res_job.RunScripts), 0, ITEM_NO_EQUALS, 0}, {"selectiontype", store_migtype, ITEM(res_job.selection_type), 0, 0, 0}, + {"accurate", store_bool, ITEM(res_job.accurate), 0,0,0}, {NULL, NULL, {0}, 0, 0, 0} }; @@ -618,6 +619,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm if (res->res_job.spool_size) { sendit(sock, _(" SpoolSize=%s\n"), edit_uint64(res->res_job.spool_size, ed1)); } + if (res->res_job.JobType == JT_BACKUP) { + sendit(sock, _(" Accurate=%d\n"), res->res_job.accurate); + } if (res->res_job.JobType == JT_MIGRATE) { sendit(sock, _(" SelectionType=%d\n"), res->res_job.selection_type); } diff --git a/bacula/src/dird/dird_conf.h b/bacula/src/dird/dird_conf.h index 47eeee994c..cdd0f0e871 100644 --- a/bacula/src/dird/dird_conf.h +++ b/bacula/src/dird/dird_conf.h @@ -400,6 +400,7 @@ public: bool write_part_after_job; /* Set to write part after job in SD */ bool enabled; /* Set if job enabled */ bool OptimizeJobScheduling; /* Set if we should optimize Job scheduling */ + bool accurate; /* Set if it is an accurate backup job */ MSGS *messages; /* How and where to send messages */ SCHED *schedule; /* When -- Automatic schedule */ diff --git a/bacula/src/jcr.h b/bacula/src/jcr.h index 853dea4700..4f3f50c4de 100644 --- a/bacula/src/jcr.h +++ b/bacula/src/jcr.h @@ -210,6 +210,7 @@ public: B_DB *db_batch; /* database pointer for batch insert */ ATTR_DBR *ar; /* DB attribute record */ guid_list *id_list; /* User/group id to name list */ + bool accurate; /* true if job is accurate */ void *plugin_ctx_list; /* list of contexts for plugins */ void *plugin_ctx; /* current plugin context */ -- 2.39.5