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]