]> git.sur5r.net Git - bacula/bacula/commitdiff
Rename bEventVssSnapshotLetters to bEventPrepareSnapshot
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 24 Nov 2010 09:11:33 +0000 (10:11 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 25 Nov 2010 14:09:59 +0000 (15:09 +0100)
bacula/src/filed/fd_plugins.h
bacula/src/filed/job.c

index a24a2af182c40093c9e2a10ec1d7c973a258e360..c9db624158e09aabda8d8bd47e188842935d2e59 100644 (file)
@@ -198,7 +198,7 @@ typedef enum {
   bEventLevel                           = 11,
   bEventSince                           = 12,
   bEventCancelCommand                   = 13, /* Executed by another thread */
-  bEventVssBackupAddComponents          = 14,
+  bEventVssBackupAddComponents          = 14, /* Just before bEventVssPrepareSnapshot */
   bEventVssRestoreLoadComponentMetadata = 15,
   bEventVssRestoreSetComponentsSelected = 16,
   bEventRestoreObject                   = 17,
@@ -211,7 +211,7 @@ typedef enum {
    * You need to add them without duplicates, 
    * see fd_common.h add_drive() copy_drives() to get help
    */
-  bEventVssAddSnapshotLetters           = 21
+  bEventVssPrepareSnapshot              = 21
 } bEventType;
 
 typedef struct s_bEvent {
index d5f4866db25b8d204535df8d85a3d4f8214dad75..7e9dfdb5a79561cd1ae6030606280a72cb12dec4 100644 (file)
@@ -1820,7 +1820,7 @@ static int backup_cmd(JCR *jcr)
         /* tell vss which drives to snapshot */   
         char szWinDriveLetters[27];
         *szWinDriveLetters=0;
-        generate_plugin_event(jcr, bEventVssSnapshotLetters, szWinDriveLetters);
+        generate_plugin_event(jcr, bEventVssPrepareSnapshot, szWinDriveLetters);
         if (get_win32_driveletters(jcr->ff, szWinDriveLetters)) {
             Jmsg(jcr, M_INFO, 0, _("Generate VSS snapshots. Driver=\"%s\", Drive(s)=\"%s\"\n"), g_pVSSClient->GetDriverName(), szWinDriveLetters);
             if (!g_pVSSClient->CreateSnapshots(szWinDriveLetters)) {