On Saturday 20 August 2005 01:58, Scott Loga wrote: > The default mtx-changer script is mtx-changer %c %o %S %a %d. The %S > command is for Slot Base 1 and %s is for Slot Base 0. Do the %s and %S > commands indicate the Slot Base Default of the AutoLoader or does it > indicate the value you want the slots to begin with? > > The reason I ask is that Bacula queries the user for the slot number > when labeling tapes. As you can see below, Bacula uses (0 for none). > > > *label > Using default Catalog name=MyCatalog DB=bacula > The defined Storage resources are: > 1: File > 2: QuantumDLT7000 > Select Storage resource (1-2): 2 > Enter new Volume name: Daily01 > Enter slot (0 for none): > > > > So, can one use Slot 0 or should we begin our Slot Numbers with 1? > > I would appreciate any insight or comments regarding the above.
This is defined, reasonably clearly, at the end of the autochangers chapter of the development manual. When sending info to Bacula (loaded or list) from the mtx-changer script, the slots must be base 1. In that context as you mention, a slot number returned to Bacula of 0 indicates none, or in a list is invalid. If you want to receive slot information for your autoloader script base 1 use %S as is the default (what mtx uses). If you want to receive slot information base 0 then use %s. If your changer uses base 0, you must translate the results before sending them to Bacula. Note, the default drive specification is base 0 (what mtx wants). I was stupid enough to use that convention internally in Bacula, which IMO is confusing for the users, but it is now too late to change. > > Respectfully, > > Scott Loga > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- Best regards, Kern ("> /\ V_V ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users