Hi,
the "update slots" command does not reprobe the tape which is in the drive.
This is not really harmful in case of "real" tape changers, as they tend not
to be abel to swap magazines with a tape in drive.
When using "vchanger" style virtual tape changers, this has resulted in
problems for me, however. The attached patch fixes the problem for me. It re-
probes the tape in drive when "update slots" is executed.
Thx
Bastian
--
Collax GmbH . Basler Str. 115a . 79115 Freiburg . Germany
p: +49 (0) 89-990 157-28 www.collax.com
Geschäftsführer: Bernd Bönte, Boris Nalbach
AG München HRB 173695. Ust.-IdNr: DE270819312
--- bacula-5.0.3.old/src/stored/autochanger.c 2010-08-05 16:29:51.000000000 +0200
+++ bacula-5.0.3/src/stored/autochanger.c 2010-11-05 14:29:35.000000000 +0100
@@ -548,6 +548,10 @@
return true;
}
+ if (bstrcmp(cmd, "list") || bstrcmp(cmd, "listall")) {
+ get_autochanger_loaded_slot(dcr); /* stored sometimes gets confused on this */
+ }
+
changer = get_pool_memory(PM_FNAME);
lock_changer(dcr);
/* Now issue the command */
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel