]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl First cut of accurate patch
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 13 Feb 2008 22:01:28 +0000 (22:01 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 13 Feb 2008 22:01:28 +0000 (22:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6415 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/dird_conf.c
bacula/src/dird/dird_conf.h
bacula/src/jcr.h

index 3b34cc50d11647cb0657cf650e1b70eeee265818..e31f5c718cc37c2526f5ebfaeed85fb4e0354d82 100644 (file)
@@ -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);
       }
index 47eeee994c1a3667c7a58f0c2faa6dd7ec40468f..cdd0f0e87122dbcaff29e726579f0c90354d4418 100644 (file)
@@ -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 */
index 853dea470054415e52763ff64986016d4997c89e..4f3f50c4de3475fce28c6f159e57a9e87c6051a5 100644 (file)
@@ -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 */