if (dev->must_unload()) {
ask = true; /* ask operator to mount tape */
}
- unlock_volumes();
+// unlock_volumes();
do_unload();
do_swapping(true /*is_writing*/);
do_load(true /*is_writing*/);
- lock_volumes();
+// lock_volumes();
if (!find_a_volume()) {
goto no_lock_bail_out;
}
* and move the tape to the end of data.
*
*/
- unlock_volumes();
+// unlock_volumes();
dcr->setVolCatInfo(false); /* out of date when Vols unlocked */
if (autoload_device(dcr, true/*writing*/, NULL) > 0) {
autochanger = true;
VolCatInfo.Slot = 0;
ask = retry >= 2;
}
- lock_volumes();
+// lock_volumes();
Dmsg1(150, "autoload_dev returns %d\n", autochanger);
/*
* If we autochanged to correct Volume or (we have not just