]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.2.x/2.2.6-scratch.patch
Cleanup patches a bit
[bacula/bacula] / bacula / patches / 2.2.x / 2.2.6-scratch.patch
1
2  This patch prevents the "status dir" command from trying to use a scratch
3  volume and possibly moving it from one pool to another.  This patch fixes
4  bug #1019.
5
6  Apply the patch to 2.2.6 (and possibly any 2.2.x version with):
7
8  cd <bacula-source>
9  patch -p0 <2.2.6-scratch.patch
10  ./configure <your-options>
11  make
12  ...
13  make install
14
15
16
17 Index: src/dird/next_vol.c
18 ===================================================================
19 --- src/dird/next_vol.c (revision 5999)
20 +++ src/dird/next_vol.c (working copy)
21 @@ -97,7 +97,7 @@
22                    prune_volumes(jcr, InChanger, mr);
23                 }
24                 ok = recycle_oldest_purged_volume(jcr, InChanger, mr);
25 -               if (!ok) {
26 +               if (!ok && create) {
27                    Dmsg4(050, "after prune volumes_vol ok=%d index=%d InChanger=%d Vstat=%s\n",
28                          ok, index, InChanger, mr->VolStatus);
29                    /*