This happens in rare cases with multiple simultaneous jobs
when the Volume fills.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5684
91ce42f0-d328-0410-95d8-
f526ca767f89
* Check if we can still write. This may not be the case
* if we are at the end of the tape or we got a fatal I/O error.
*/
- if (dev->can_write()) {
+ if (ok || dev->can_write()) {
if (!write_session_label(dcr, EOS_LABEL)) {
Jmsg1(jcr, M_FATAL, 0, _("Error writting end session label. ERR=%s\n"),
dev->bstrerror());
General:
28Sep07
+kes Fix race condition that drops final block written to volume.
+ This happens in rare cases with multiple simultaneous jobs
+ when the Volume fills.
kes Eliminate more strerror() and replace with bstrerror().
kes Remove BSD getopt and replace with unrestricted IBM version
kes Fix Win32 build.