} else {
autochanger = false;
VolCatInfo.Slot = 0;
+ ask = true;
}
Dmsg1(150, "autoload_dev returns %d\n", autochanger);
/*
ask = false;
}
Dmsg2(150, "Ask=%d autochanger=%d\n", ask, autochanger);
- dev->must_unload(); /* release next time if we "recurse" */
if (ask && !dir_ask_sysop_to_mount_volume(dcr, ST_APPEND)) {
Dmsg0(150, "Error return ask_sysop ...\n");
if (try_autolabel(false) == try_read_vol) {
break; /* created a new volume label */
}
+ dev->set_unload(); /* force ask sysop */
+ ask = true;
+ goto mount_next_vol;
+#ifdef xxx
/* If DVD, ignore the error, very often you cannot open the device
* (when there is no DVD, or when the one inserted is a wrong one) */
if (dev->poll || dev->is_dvd()) {
goto mount_next_vol;
} else {
- Jmsg(jcr, M_ERROR, 0, _("Could not open device %s: ERR=%s\n"),
+ Jmsg2(jcr, M_ERROR, 0, _("Could not open device %s: ERR=%s\n"),
dev->print_name(), dev->print_errmsg());
goto bail_out;
}
+#endif
}
/*
switch (check_volume_label(ask, autochanger)) {
case check_next_vol:
+ dev->set_unload(); /* want a different Volume */
goto mount_next_vol;
case check_read_vol:
goto read_volume;
General:
20Jun08
kes More word alignment cleanup.
+kes Fix bug where SD did not ask operator if the device could not
+ be opened. Reported by Eric.
19Jun08
kes Add dbuser to DIR conf file (replaces user).
kes Add --with-db-password to ./configure