From 1ae317bf276a75a62dc90f03d30ea3165702473e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 19 Mar 2010 19:01:46 +0100 Subject: [PATCH] Add bEventInitializeVSS as requested by James --- bacula/src/filed/fd_plugins.h | 3 ++- bacula/src/filed/job.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bacula/src/filed/fd_plugins.h b/bacula/src/filed/fd_plugins.h index f64ba1b17a..2f6ac15b29 100644 --- a/bacula/src/filed/fd_plugins.h +++ b/bacula/src/filed/fd_plugins.h @@ -167,7 +167,8 @@ typedef enum { bEventRestoreCommand = 10, bEventLevel = 11, bEventSince = 12, - bEventCancelCommand = 13 + bEventCancelCommand = 13, + bEventInitializeVSS = 14 } bEventType; typedef struct s_bEvent { diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 4357fd63c0..bcdc459a36 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1597,6 +1597,7 @@ static int backup_cmd(JCR *jcr) /* START VSS ON WIN32 */ if (jcr->VSS) { if (g_pVSSClient->InitializeForBackup(jcr)) { + generate_plugin_event(jcr, bEventInitializeVSS); /* tell vss which drives to snapshot */ char szWinDriveLetters[27]; if (get_win32_driveletters(jcr->ff, szWinDriveLetters)) { -- 2.39.5