]> git.sur5r.net Git - bacula/bacula/commitdiff
Add bEventInitializeVSS as requested by James
authorKern Sibbald <kern@sibbald.com>
Fri, 19 Mar 2010 18:01:46 +0000 (19:01 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:41 +0000 (16:49 +0200)
bacula/src/filed/fd_plugins.h
bacula/src/filed/job.c

index f64ba1b17a29bd1e739f99ee9dd88d259e22f4de..2f6ac15b291134aceaff4100cfbe80f73adec9c2 100644 (file)
@@ -167,7 +167,8 @@ typedef enum {
   bEventRestoreCommand  = 10,
   bEventLevel           = 11,
   bEventSince           = 12,
-  bEventCancelCommand   = 13
+  bEventCancelCommand   = 13,
+  bEventInitializeVSS   = 14
 } bEventType;
 
 typedef struct s_bEvent {
index 4357fd63c08fb3e6d882ab6e6d693a909b405964..bcdc459a36e342b6c47bbb184e0b02969aed0144 100644 (file)
@@ -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)) {