]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fixes #1028 about jobdefs option that doesn't work.
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 29 Dec 2007 22:23:18 +0000 (22:23 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 29 Dec 2007 22:23:18 +0000 (22:23 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6162 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.2.7-jobdefs-migtype.patch [new file with mode: 0644]

diff --git a/bacula/patches/2.2.7-jobdefs-migtype.patch b/bacula/patches/2.2.7-jobdefs-migtype.patch
new file mode 100644 (file)
index 0000000..b793aae
--- /dev/null
@@ -0,0 +1,56 @@
+
+ This patch permits to use migration options with JobDefs.
+ This patch fixes bug #1028.
+
+ Apply the patch to 2.2.7 (and possibly any 2.2.x version with):
+
+ cd <bacula-source>
+ patch -p0 <2.2.7-jobdefs-migtype.patch
+ ./configure <your-options>
+ make
+ ...
+ make install
+
+Index: src/dird/dird.c
+===================================================================
+--- src/dird/dird.c    (rĂ©vision 6160)
++++ src/dird/dird.c    (copie de travail)
+@@ -58,6 +58,7 @@
+ void store_jobtype(LEX *lc, RES_ITEM *item, int index, int pass);
+ void store_level(LEX *lc, RES_ITEM *item, int index, int pass);
+ void store_replace(LEX *lc, RES_ITEM *item, int index, int pass);
++void store_migtype(LEX *lc, RES_ITEM *item, int index, int pass);
+ void init_device_resources();
+ static char *runjob = NULL;
+@@ -707,6 +708,7 @@
+                           job_items[i].handler == store_jobtype ||
+                           job_items[i].handler == store_level   ||
+                           job_items[i].handler == store_pint    ||
++                          job_items[i].handler == store_migtype ||
+                           job_items[i].handler == store_replace) {
+                   def_ivalue = (int *)((char *)(job->jobdefs) + offset);
+                   Dmsg5(400, "Job \"%s\", field \"%s\" def_ivalue=%d item %d offset=%u\n",
+Index: src/dird/dird_conf.c
+===================================================================
+--- src/dird/dird_conf.c       (rĂ©vision 6160)
++++ src/dird/dird_conf.c       (copie de travail)
+@@ -74,8 +74,8 @@
+ void store_level(LEX *lc, RES_ITEM *item, int index, int pass);
+ void store_replace(LEX *lc, RES_ITEM *item, int index, int pass);
+ void store_acl(LEX *lc, RES_ITEM *item, int index, int pass);
++void store_migtype(LEX *lc, RES_ITEM *item, int index, int pass);
+ static void store_device(LEX *lc, RES_ITEM *item, int index, int pass);
+-static void store_migtype(LEX *lc, RES_ITEM *item, int index, int pass);
+ static void store_runscript(LEX *lc, RES_ITEM *item, int index, int pass);
+ static void store_runscript_when(LEX *lc, RES_ITEM *item, int index, int pass);
+ static void store_runscript_cmd(LEX *lc, RES_ITEM *item, int index, int pass);
+@@ -1559,7 +1559,7 @@
+  * Store JobType (backup, verify, restore)
+  *
+  */
+-static void store_migtype(LEX *lc, RES_ITEM *item, int index, int pass)
++void store_migtype(LEX *lc, RES_ITEM *item, int index, int pass)
+ {
+    int token, i;