From: Eric Bollengier Date: Wed, 13 Feb 2008 22:01:28 +0000 (+0000) Subject: ebl First cut of accurate patch X-Git-Tag: Release-7.0.0~5024 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bbc3b07dfe6c4862dbf215b0c50e6fb707f1918c;p=bacula%2Fbacula ebl First cut of accurate patch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6415 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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 */