From: Kern Sibbald Date: Thu, 15 Jul 2010 11:15:33 +0000 (+0200) Subject: Make VSS snapshot failures fatal X-Git-Tag: Release-5.2.1~954 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e12e363685d25bf9a2bca58ea1b9cbc54be599f;p=bacula%2Fbacula Make VSS snapshot failures fatal --- diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 2fb991256f..769beb6267 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1829,23 +1829,22 @@ static int backup_cmd(JCR *jcr) int i; for (i=0; i < (int)strlen(szWinDriveLetters); i++) { if (islower(szWinDriveLetters[i])) { - Jmsg(jcr, M_WARNING, 0, _("Generate VSS snapshot of drive \"%c:\\\" failed. VSS support is disabled on this drive.\n"), szWinDriveLetters[i]); - jcr->JobErrors++; + Jmsg(jcr, M_FATAL, 0, _("Generate VSS snapshot of drive \"%c:\\\" failed.\n"), szWinDriveLetters[i]); } } /* inform user about writer states */ - for (i=0; i < (int)g_pVSSClient->GetWriterCount(); i++) + for (i=0; i < (int)g_pVSSClient->GetWriterCount(); i++) { if (g_pVSSClient->GetWriterState(i) < 1) { Jmsg(jcr, M_INFO, 0, _("VSS Writer (PrepareForBackup): %s\n"), g_pVSSClient->GetWriterInfo(i)); - //jcr->JobErrors++; } + } } } else { - Jmsg(jcr, M_INFO, 0, _("No drive letters found for generating VSS snapshots.\n")); + Jmsg(jcr, M_FATAL, 0, _("No drive letters found for generating VSS snapshots.\n")); } } else { berrno be; - Jmsg(jcr, M_WARNING, 0, _("VSS was not initialized properly. VSS support is disabled. ERR=%s\n"), be.bstrerror()); + Jmsg(jcr, M_FATAL, 0, _("VSS was not initialized properly. ERR=%s\n"), be.bstrerror()); } run_scripts(jcr, jcr->RunScripts, "ClientAfterVSS"); }