changer = get_pool_memory(PM_FNAME);
if (slot <= 0) {
- Jmsg(jcr, M_INFO, 0, _("Invalid slot=%d defined in catalog. Manual load my be required.\n"), slot);
+ Jmsg(jcr, M_INFO, 0, _("Invalid slot=%d defined in catalog for Volume \"%s\" "
+ "on %s. Manual load my be required.\n"), slot, dcr->VolCatInfo.VolCatName,
+ dev->print_name());
rtn_stat = 0;
} else if (!dcr->device->changer_name) {
- Jmsg(jcr, M_INFO, 0, _("No \"Changer Device\" manual load of Volume may be required.\n"));
+ Jmsg(jcr, M_INFO, 0, _("No \"Changer Device\" for %s. Manual load of Volume may be required.\n"),
+ dev->print_name());
rtn_stat = 0;
} else if (!dcr->device->changer_command) {
- Jmsg(jcr, M_INFO, 0, _("No \"Changer Command\" manual load of Volume may be requird.\n"));
+ Jmsg(jcr, M_INFO, 0, _("No \"Changer Command\" for %s. Manual load of Volume may be requird.\n"),
+ dev->print_name());
rtn_stat = 0;
} else {
/* Attempt to load the Volume */
return dev->Slot;
}
/* Virtual disk autochanger */
- if (dcr->device->changer_command[0] ==0) {
+ if (dcr->device->changer_command[0] == 0) {
return 1;
}
} else {
dev->Slot = 0; /* nothing loaded */
}
+ free_volume(dev); /* Free any volume associated with this drive */
free_pool_memory(changer);
unlock_changer(dcr);
}
dev->Slot = 0; /* nothing loaded */
Dmsg0(100, "Slot unloaded\n");
}
+ free_volume(dev); /* Free any volume associated with this drive */
unlock_changer(dcr);
dev->dunlock();
free_pool_memory(changer_cmd);