if (!write_block_to_dev(dcr)) {
if (job_canceled(jcr) || jcr->getJobType() == JT_SYSTEM) {
- if (jcr->getJobType() != JT_SYSTEM) {
- terminate_writing_volume(dcr);
- }
stat = false;
} else {
stat = fixup_device_block_write_error(dcr);
return true;
#endif
if (job_canceled(jcr)) {
- terminate_writing_volume(dcr);
return false;
}
DEVICE *dev = dcr->dev;
bool ok = true;
- if (dev->at_eot()) {
- return true;
- }
-
/* Create a JobMedia record to indicated end of tape */
dev->VolCatInfo.VolCatFiles = dev->file;
if (!dir_create_jobmedia_record(dcr)) {