+
+ This patch fix #1173 about problems during volume selection.
+
+ It can be applied to 2.4.3 (not to previous versions) with:
+
+ cd <bacula-source>
+ patch -p0 <2.4.3-next-vol.patch
+ ./configure <your-options>
+ make
+ ...
+ make install
+
Index: src/dird/next_vol.c
===================================================================
--- src/dird/next_vol.c (revision 7259)
}
+Index: src/dird/autoprune.c
+===================================================================
+--- src/dird/autoprune.c (revision 7895)
++++ src/dird/autoprune.c (working copy)
+@@ -204,13 +204,6 @@
+ memcpy(mr, &lmr, sizeof(lmr));
+ break; /* got a volume */
+ }
+- /*
+- * We purged something but did not get a volume in the current pool.
+- * It must be a scratch volume, so try to get it.
+- */
+- if (ok && get_scratch_volume(jcr, InChanger, mr)) {
+- break; /* got a volume */
+- }
+ ok = false; /* clear OK, in case we fall out */
+ } else {
+ Dmsg2(050, "Nothing pruned MediaId=%d Volume=%s\n", (int)lmr.MediaId, lmr.VolumeName);