Am Donnerstag, 19. Mai 2011, 10:42:20 schrieb Bastian Friedrich:
> The attached patch fixes the problem for me. It
> re- probes the tape in drive when "update slots" is executed.
Argh, wrong patch revision sent. Sorry for the mess, better patch attached.
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,11 @@
return true;
}
+ if (bstrcmp(cmd, "list") || bstrcmp(cmd, "listall")) {
+ dcr->dev->set_slot(0);
+ get_autochanger_loaded_slot(dcr); /* stored sometimes gets confused on this with unreleased vchangers */
+ }
+
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