Bug#453940: bacula - default label format does not match documentation

2008-08-03 Thread Kern Sibbald
The documentation was not correct in that it did not take into account the 
fact that volumes may be deleted from the pool.  In fact, what the code 
attempts to do is to create unique volume names without reusing old ones.

I have updated the manual to say:

   If no variable expansion characters are found in the string, the Volume
   name will be formed from the {\bf format} string appended with the
   a unique number that increases.  If you do not remove volumes from the
   pool, this number should be the number of volumes plus one, but this
   is not guaranteed. The unique number will be edited as four
   digits with leading zeros.  For example, with a {\bf Label Format =
   File-}, the first volumes will be named {\bf File-0001}, {\bf
   File-0002}, ...

This will appear in version 2.4.3 and later versions.

A number of changes have been made to the algorithm in between your version 
and the current 2.4.2 version. Note, the unique number is not necessarily the 
MediaId as the MediaId pertains to all pools.

I recommend to close this bug report.

Kern
Bacula Project Manager.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#453940: bacula - default label format does not match documentation

2007-12-02 Thread Bastian Blank
Package: bacula
Version: 2.2.6-0.1
Severity: important

The simple lable format uses the result from the following sql query
| SELECT MAX(MediaId) FROM Media,Pool WHERE Pool.PoolId=%;
to get the next number for the label. The documentation stats
| If no variable expansion characters are found in the string, the Volume
| name will be formed from the format string appended with the number of
| volumes in the pool plus one, which will be edited as four digits with
| leading zeros. For example, with a Label Format = File-, the first
| volumes will be named File-0001,  File-0002, ...
But the query shown above does not even provide a number near of that.

In bacula 1.38 it just tried to find a new number by brute force.

Bastian

-- 
We have phasers, I vote we blast 'em!
-- Bailey, The Corbomite Maneuver, stardate 1514.2


signature.asc
Description: Digital signature