]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
This patch prevents the 'status dir' command from trying to use a scratch
authorKern Sibbald <kern@sibbald.com>
Sun, 2 Dec 2007 14:19:28 +0000 (14:19 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 2 Dec 2007 14:19:28 +0000 (14:19 +0000)
     volume and possibly moving it from one pool to another.  This patch fixes
     bug #1019. + move old patches into subdirectory

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6010 91ce42f0-d328-0410-95d8-f526ca767f89

19 files changed:
bacula/patches/2.2.6-scratch.patch [new file with mode: 0644]
bacula/patches/2.2.x/2.2.4-ansi-label.patch [moved from bacula/patches/2.2.4-ansi-label.patch with 100% similarity]
bacula/patches/2.2.x/2.2.4-lost-block.patch [moved from bacula/patches/2.2.4-lost-block.patch with 100% similarity]
bacula/patches/2.2.x/2.2.4-parse-command.patch [moved from bacula/patches/2.2.4-parse-command.patch with 100% similarity]
bacula/patches/2.2.x/2.2.4-poll-mount.patch [moved from bacula/patches/2.2.4-poll-mount.patch with 100% similarity]
bacula/patches/2.2.x/2.2.4-replace.patch [moved from bacula/patches/2.2.4-replace.patch with 100% similarity]
bacula/patches/2.2.x/2.2.4-restore.patch [moved from bacula/patches/2.2.4-restore.patch with 100% similarity]
bacula/patches/2.2.x/2.2.4-sd-auth-fail.patch [moved from bacula/patches/2.2.4-sd-auth-fail.patch with 100% similarity]
bacula/patches/2.2.x/2.2.4-sql.patch [moved from bacula/patches/2.2.4-sql.patch with 100% similarity]
bacula/patches/2.2.x/2.2.4-verify.patch [moved from bacula/patches/2.2.4-verify.patch with 100% similarity]
bacula/patches/2.2.x/2.2.5-deamon.patch [moved from bacula/patches/2.2.5-deamon.patch with 100% similarity]
bacula/patches/2.2.x/2.2.5-hb.patch [moved from bacula/patches/2.2.5-hb.patch with 100% similarity]
bacula/patches/2.2.x/2.2.5-lastwritten.patch [moved from bacula/patches/2.2.5-lastwritten.patch with 100% similarity]
bacula/patches/2.2.x/2.2.5-nextvol.patch [moved from bacula/patches/2.2.5-nextvol.patch with 100% similarity]
bacula/patches/2.2.x/2.2.5-postgresql-errors.patch [moved from bacula/patches/2.2.5-postgresql-errors.patch with 100% similarity]
bacula/patches/2.2.x/2.2.5-tray-monitor.patch [moved from bacula/patches/2.2.5-tray-monitor.patch with 100% similarity]
bacula/patches/2.2.x/2.2.5-verify-loop.patch [moved from bacula/patches/2.2.5-verify-loop.patch with 100% similarity]
bacula/src/dird/next_vol.c
bacula/technotes-2.3

diff --git a/bacula/patches/2.2.6-scratch.patch b/bacula/patches/2.2.6-scratch.patch
new file mode 100644 (file)
index 0000000..d6da1cd
--- /dev/null
@@ -0,0 +1,29 @@
+
+ This patch prevents the "status dir" command from trying to use a scratch
+ volume and possibly moving it from one pool to another.  This patch fixes
+ bug #1019.
+
+ Apply the patch to 2.2.6 (and possibly any 2.2.x version with):
+
+ cd <bacula-source>
+ patch -p0 <2.2.6-scratch.patch
+ ./configure <your-options>
+ make
+ ...
+ make install
+
+
+
+Index: src/dird/next_vol.c
+===================================================================
+--- src/dird/next_vol.c        (revision 5999)
++++ src/dird/next_vol.c        (working copy)
+@@ -97,7 +97,7 @@
+                   prune_volumes(jcr, InChanger, mr);
+                }
+                ok = recycle_oldest_purged_volume(jcr, InChanger, mr);
+-               if (!ok) {
++               if (!ok && create) {
+                   Dmsg4(050, "after prune volumes_vol ok=%d index=%d InChanger=%d Vstat=%s\n",
+                         ok, index, InChanger, mr->VolStatus);
+                   /*
index 6aecf5331d04556447db675179070bada602856f..29a92541b6beb21c10635dd3663ab8d45f03b36d 100644 (file)
@@ -97,7 +97,7 @@ int find_next_volume_for_append(JCR *jcr, MEDIA_DBR *mr, int index,
                   prune_volumes(jcr, InChanger, mr);
                }
                ok = recycle_oldest_purged_volume(jcr, InChanger, mr);
-               if (!ok) {
+               if (!ok && create) {
                   Dmsg4(050, "after prune volumes_vol ok=%d index=%d InChanger=%d Vstat=%s\n",
                         ok, index, InChanger, mr->VolStatus);
                   /*
index 5ffc7b6eab1269c320e952a36849649f09a6af40..7bae8283cc5039a4bca5e04e5282549f26aa6d05 100644 (file)
@@ -1,6 +1,10 @@
               Technical notes on version 2.3
 
 General:
+02Dec07
+kes  This patch prevents the 'status dir' command from trying to use a scratch
+     volume and possibly moving it from one pool to another.  This patch fixes
+     bug #1019.
 01Dec07
 kes  Add new include to cats/postgresql.c suggested by Marc Cousins so
      that it compiles correctly with pgre version 8.3.