-/*
- *
- * Routines for handling the autochanger.
- *
- * Kern Sibbald, August MMII
- *
- * Version $Id$
- */
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2002-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2002-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
+/*
+ *
+ * Routines for handling the autochanger.
+ *
+ * Kern Sibbald, August MMII
+ *
+ * Version $Id$
+ */
#include "bacula.h" /* pull in global headers */
#include "stored.h" /* pull in Storage Deamon headers */
AUTOCHANGER *changer = dcr->dev->device->changer_res;
DEVRES *device;
bool found = false;
- bool first = true;
+ int retries = 0; /* wait for device retries */
if (!changer) {
return false;
}
for (int i=0; i < 3; i++) {
if (dev->is_busy()) {
- wait_for_device(dcr->jcr, first);
- first = false;
+ wait_for_device(dcr->jcr, retries);
continue;
}
break;