--- /dev/null
+
+ This patch fixes the infinite loop when trying to increase the
+ maximum number of volumes in a Pool during the add command.
+ This patch fixes bug #1008.
+
+ It can be applied to Bacula version 2.2.6 (and probably earlier
+ 2.2.x versions) with:
+
+ cd <bacula-source>
+ ./configure <your options>
+ patch -p0 <2.2.6-add.patch
+ make
+ ...
+ make install
+
+Index: src/dird/ua_cmds.c
+===================================================================
+--- src/dird/ua_cmds.c (revision 5901)
++++ src/dird/ua_cmds.c (working copy)
+@@ -244,12 +244,10 @@
+
+ while (pr.MaxVols > 0 && pr.NumVols >= pr.MaxVols) {
+ ua->warning_msg(_("Pool already has maximum volumes=%d\n"), pr.MaxVols);
+- for (;;) {
+- if (!get_pint(ua, _("Enter new maximum (zero for unlimited): "))) {
+- return 1;
+- }
+- pr.MaxVols = ua->pint32_val;
++ if (!get_pint(ua, _("Enter new maximum (zero for unlimited): "))) {
++ return 1;
+ }
++ pr.MaxVols = ua->pint32_val;
+ }
+
+ /* Get media type */
while (pr.MaxVols > 0 && pr.NumVols >= pr.MaxVols) {
ua->warning_msg(_("Pool already has maximum volumes=%d\n"), pr.MaxVols);
- for (;;) {
- if (!get_pint(ua, _("Enter new maximum (zero for unlimited): "))) {
- return 1;
- }
- pr.MaxVols = ua->pint32_val;
+ if (!get_pint(ua, _("Enter new maximum (zero for unlimited): "))) {
+ return 1;
}
+ pr.MaxVols = ua->pint32_val;
}
/* Get media type */
Technical notes on version 2.2
General:
+14Nov07
+kes This patch fixes the infinite loop when trying to increase the
+ maximum number of volumes in a Pool during the add command.
+ This patch fixes bug #1008.
+
Release Version 2.2.6
09Nov07
kes Get fix for joblist bug in bat from trunk.
kes Fix spurious warning message printed when creating a volume with
a LabelFormat. This fixes bug #976.
+Release Version 2.2.5
09Oct07
kes Add JobId in place of Job name in all the Jmsg() output.
kes Correct the APP_DESC for the Win32 storage service (remove an e).