From 9f025ae7a1339d0482283be4c3c5bbbee918f56e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 14 Jul 2009 18:43:11 +0000 Subject: [PATCH] Add more output when spooling and no space left git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8995 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/spool.c | 7 +++++++ bacula/technotes | 1 + 2 files changed, 8 insertions(+) diff --git a/bacula/src/stored/spool.c b/bacula/src/stored/spool.c index 6bff7b5969..f13bfdf3e2 100644 --- a/bacula/src/stored/spool.c +++ b/bacula/src/stored/spool.c @@ -221,6 +221,10 @@ static bool despool_data(DCR *dcr, bool commit) char ec1[50]; Dmsg0(100, "Despooling data\n"); + if (jcr->dcr->job_spool_size == 0) { + Jmsg(jcr, M_WARNING, 0, _("Despooling zero bytes. Your disk is probably FULL!\n")); + } + /* * Commit means that the job is done, so we commit, otherwise, we * are despooling because of user spool size max or some error @@ -515,6 +519,9 @@ static bool write_spool_header(DCR *dcr) be.bstrerror()); } if (stat != (ssize_t)sizeof(hdr)) { + Jmsg(dcr->jcr, M_ERROR, 0, _("Error writing header to spool file." + " Disk probably full. Attempting recovery. Wanted to write=%d got=%d\n"), + (int)stat, (int)sizeof(hdr)); /* If we wrote something, truncate it, then despool */ if (stat != -1) { #if defined(HAVE_WIN32) diff --git a/bacula/technotes b/bacula/technotes index 4d0c98ec0d..0cd00e7408 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -3,6 +3,7 @@ General: 14Jul09 +kes Add more output when spooling and no space left ebl Fix postgresql driver bug that displayed rows from time to time. kes More cleanup of bootstrap ebl Implement the project 'restore' menu: enter a JobId, automatically -- 2.39.5