]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/1.34.6/1.34.6-pool.patch
ebl add joberrors to job record
[bacula/bacula] / bacula / patches / 1.34.6 / 1.34.6-pool.patch
1
2  This patch fixes a bug where Inc, Diff, and Full Pool overrides
3  would incorrectly override a Pool= on the Run card. The patch
4  also includes the Pool actually used in the Job Report.
5
6  Apply the patch to version 1.34.6 with:
7
8  cd <bacula-source>
9  patch -p0 <1.34.6-pool.patch
10  make
11  ...
12
13 Index: src/dird/scheduler.c
14 ===================================================================
15 RCS file: /cvsroot/bacula/bacula/src/dird/scheduler.c,v
16 retrieving revision 1.24
17 diff -u -r1.24 scheduler.c
18 --- src/dird/scheduler.c        13 Mar 2004 09:30:10 -0000      1.24
19 +++ src/dird/scheduler.c        11 Aug 2004 07:38:51 -0000
20 @@ -147,15 +147,6 @@
21     if (run->pool) {
22        jcr->pool = run->pool;         /* override pool */
23     }
24 -   if (run->full_pool) {
25 -      jcr->pool = run->full_pool;     /* override full pool */
26 -   }
27 -   if (run->inc_pool) {
28 -      jcr->pool = run->inc_pool;      /* override inc pool */
29 -   }
30 -   if (run->dif_pool) {
31 -      jcr->pool = run->dif_pool;      /* override dif pool */
32 -   }
33     if (run->storage) {
34        jcr->store = run->storage;      /* override storage */
35     }
36 Index: src/dird/backup.c
37 ===================================================================
38 RCS file: /cvsroot/bacula/bacula/src/dird/backup.c,v
39 retrieving revision 1.65
40 diff -u -r1.65 backup.c
41 --- src/dird/backup.c   19 Apr 2004 14:27:00 -0000      1.65
42 +++ src/dird/backup.c   11 Aug 2004 07:38:52 -0000
43 @@ -468,6 +468,7 @@
44  Backup Level:           %s%s\n\
45  Client:                 %s\n\
46  FileSet:                \"%s\" %s\n\
47 +Pool:                   \"%s\"\n\
48  Start time:             %s\n\
49  End time:               %s\n\
50  FD Files Written:       %s\n\
51 @@ -491,6 +492,7 @@
52         level_to_str(jcr->JobLevel), since,
53         jcr->client->hdr.name,
54         jcr->fileset->hdr.name, fsr->cCreateTime,
55 +       jcr->pool->hdr.name,
56         sdt,
57         edt,
58         edit_uint64_with_commas(jcr->jr.JobFiles, ec1),