return fsf(VolCatInfo.VolCatFiles);
#endif
- Dmsg0(100, "eod\n");
+ Dmsg0(100, "Enter eod\n");
if (at_eot()) {
return true;
}
}
if (!is_tape()) {
pos = lseek(dcr, (boffset_t)0, SEEK_END);
-// Dmsg1(100, "====== Seek to %lld\n", pos);
+ Dmsg1(200, "====== Seek to %lld\n", pos);
if (pos >= 0) {
update_pos(dcr);
set_eot();
berrno be;
Mmsg2(errmsg, _("lseek error on %s. ERR=%s.\n"),
print_name(), be.bstrerror());
+ Dmsg0(100, errmsg);
return false;
}
#ifdef MTEOM
/* If unknown position, rewind */
if (get_os_tape_file() < 0) {
if (!rewind(NULL)) {
+ Dmsg0(100, "Rewind error\n");
return false;
}
}
update_pos(dcr);
Mmsg2(errmsg, _("ioctl MTEOM error on %s. ERR=%s.\n"),
print_name(), be.bstrerror());
+ Dmsg0(100, errmsg);
return false;
}
clrerror(-1);
Mmsg2(errmsg, _("ioctl MTIOCGET error on %s. ERR=%s.\n"),
print_name(), be.bstrerror());
+ Dmsg0(100, errmsg);
return false;
}
Dmsg1(100, "EOD file=%d\n", os_file);
* Rewind then use FSF until EOT reached
*/
if (!rewind(NULL)) {
+ Dmsg0(100, "Rewind error.\n");
return false;
}
/*
for (file_num=file; !at_eot(); file_num++) {
Dmsg0(200, "eod: doing fsf 1\n");
if (!fsf(1)) {
- Dmsg0(200, "fsf error.\n");
+ Dmsg0(100, "fsf error.\n");
return false;
}
/*
VolumeName);
if (!dev->eod(dcr)) {
+ Dmsg2(150, "Unable to position to end of data on device %s: ERR=%s\n",
+ dev->print_name(), dev->bstrerror());
Jmsg(jcr, M_ERROR, 0, _("Unable to position to end of data on device %s: ERR=%s\n"),
dev->print_name(), dev->bstrerror());
mark_volume_in_error();