X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Ffiled%2Fjob.c;h=e81f608342c3203ca1079fa4f0d21b4e3cdb9e32;hb=9471da7e0b684cb2da6a5bc4ecb3a73cc3ddac52;hp=2fb991256f7e7045afe7e7d836fab3e473236af8;hpb=66a60c493f678b3a884c7c66a2a0b67b8c275627;p=bacula%2Fbacula diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 2fb991256f..e81f608342 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -452,13 +452,13 @@ static int cancel_cmd(JCR *jcr) if (!(cjcr=get_jcr_by_full_name(Job))) { dir->fsend(_("2901 Job %s not found.\n"), Job); } else { + generate_plugin_event(cjcr, bEventCancelCommand, NULL); + set_jcr_job_status(cjcr, JS_Canceled); if (cjcr->store_bsock) { cjcr->store_bsock->set_timed_out(); cjcr->store_bsock->set_terminated(); cjcr->my_thread_send_signal(TIMEOUT_SIGNAL); } - generate_plugin_event(cjcr, bEventCancelCommand, NULL); - set_jcr_job_status(cjcr, JS_Canceled); free_jcr(cjcr); dir->fsend(_("2001 Job %s marked to be canceled.\n"), Job); } @@ -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"); } @@ -1908,6 +1907,7 @@ cleanup: #if defined(WIN32_VSS) if (jcr->VSS) { Win32ConvCleanupCache(); + g_pVSSClient->DestroyWriterInfo(); V(vss_mutex); } #endif