many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
modify it under the terms of version two of the GNU General Public
- License as published by the Free Software Foundation plus additions
- that are listed in the file LICENSE.
+ License as published by the Free Software Foundation and included
+ in the file LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
berrno be;
be.set_errno(status);
Dmsg3(100, "load slot %d, drive %d, bad stats=%s.\n", slot, drive,
- be.strerror());
+ be.bstrerror());
Jmsg(jcr, M_FATAL, 0, _("3992 Bad autochanger \"load slot %d, drive %d\": "
"ERR=%s.\nResults=%s\n"),
- slot, drive, be.strerror(), results.c_str());
+ slot, drive, be.bstrerror(), results.c_str());
rtn_stat = -1; /* hard error */
dev->Slot = -1; /* mark unknown */
}
return dev->Slot;
}
/* Virtual disk autochanger */
- if (dcr->device->changer_command[0] ==0) {
+ if (dcr->device->changer_command[0] == 0) {
return 1;
}
berrno be;
be.set_errno(status);
Jmsg(jcr, M_INFO, 0, _("3991 Bad autochanger \"loaded? drive %d\" command: "
- "ERR=%s.\nResults=%s\n"), drive, be.strerror(), results.c_str());
+ "ERR=%s.\nResults=%s\n"), drive, be.bstrerror(), results.c_str());
loaded = -1; /* force unload */
}
unlock_changer(dcr);
be.set_errno(stat);
Jmsg(jcr, M_INFO, 0, _("3995 Bad autochanger \"unload slot %d, drive %d\": "
"ERR=%s\nResults=%s\n"),
- loaded, dev->drive_index, be.strerror(), results.c_str());
+ loaded, dev->drive_index, be.bstrerror(), results.c_str());
ok = false;
dev->Slot = -1; /* unknown */
} else {
dev->Slot = 0; /* nothing loaded */
}
+ free_volume(dev); /* Free any volume associated with this drive */
free_pool_memory(changer);
unlock_changer(dcr);
}
berrno be;
be.set_errno(stat);
Jmsg(jcr, M_INFO, 0, _("3995 Bad autochanger \"unload slot %d, drive %d\": ERR=%s.\n"),
- slot, dev->drive_index, be.strerror());
+ slot, dev->drive_index, be.bstrerror());
Dmsg3(100, "Bad autochanger \"unload slot %d, drive %d\": ERR=%s.\n",
- slot, dev->drive_index, be.strerror());
+ slot, dev->drive_index, be.bstrerror());
ok = false;
dev->Slot = -1; /* unknown */
} else {
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);
if (stat != 0) {
berrno be;
be.set_errno(stat);
- bnet_fsend(dir, _("Autochanger error: ERR=%s\n"), be.strerror());
+ bnet_fsend(dir, _("Autochanger error: ERR=%s\n"), be.bstrerror());
}
bnet_sig(dir, BNET_EOD);
ok = true;