From a531e777e48854c307e25032a52d8e50b4300d98 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 29 Aug 2007 10:46:56 +0000 Subject: [PATCH] Fix bug 921 by increasing the number of tries to create a new volume from 11 to 100. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5413 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/newvol.c | 2 +- bacula/technotes-2.3 | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bacula/src/dird/newvol.c b/bacula/src/dird/newvol.c index d8aed9027b..2a345ce8d3 100644 --- a/bacula/src/dird/newvol.c +++ b/bacula/src/dird/newvol.c @@ -120,7 +120,7 @@ static bool create_simple_name(JCR *jcr, MEDIA_DBR *mr, POOL_DBR *pr) /* See if volume already exists */ mr->VolumeName[0] = 0; bstrncpy(name, pr->LabelFormat, sizeof(name)); - for (int i=pr->NumVols+1; i<(int)pr->NumVols+11; i++) { + for (int i=pr->NumVols+1; i<(int)pr->NumVols+100; i++) { MEDIA_DBR tmr; memset(&tmr, 0, sizeof(tmr)); sprintf(num, "%04d", i); diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index e46ca39912..47da483488 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -1,6 +1,12 @@ Technical notes on version 2.3 General: +29Aug07 +kes Fix bug 921 by increasing the number of tries to create a new volume + from 11 to 100. +kes Rework bmsg in ua_output to use va_copy() so that bvsnprintf() + can be called multiple times. Implement a version for machines + without va_copy() that gets a big buffer. 25Aug07 kes Integrate more portable zone offset code into bsmtp.c Submitted by Attila Fülöp. -- 2.39.5