From cbfe8e1c9fd311e7ed6d102b35996a31a6e95497 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 14 Apr 2010 13:04:59 +0200 Subject: [PATCH] Tweak comments + indenting --- bacula/src/filed/job.c | 3 +-- bacula/src/win32/filed/vss.cpp | 2 +- bacula/src/win32/filed/vss_generic.cpp | 9 ++++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index c4b203ecd1..4a224cd68f 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1850,8 +1850,7 @@ static int verify_cmd(JCR *jcr) #ifdef WIN32_VSS static bool vss_restore_init_callback(JCR *jcr, int init_type) { - switch (init_type) - { + switch (init_type) { case VSS_INIT_RESTORE_AFTER_INIT: generate_plugin_event(jcr, bEventVssRestoreLoadComponentMetadata); return true; diff --git a/bacula/src/win32/filed/vss.cpp b/bacula/src/win32/filed/vss.cpp index 334f24bbc8..28e0b34fc2 100644 --- a/bacula/src/win32/filed/vss.cpp +++ b/bacula/src/win32/filed/vss.cpp @@ -139,7 +139,7 @@ bool VSSClient::InitializeForBackup(JCR *jcr) bool VSSClient::InitializeForRestore(JCR *jcr, bool (*VssInitCallback)(JCR *, int)) { m_jcr = jcr; - return Initialize(0, TRUE, VssInitCallback); + return Initialize(0, true/*=>Restore*/, VssInitCallback); } bool VSSClient::GetShadowPath(const char *szFilePath, char *szShadowPath, int nBuflen) diff --git a/bacula/src/win32/filed/vss_generic.cpp b/bacula/src/win32/filed/vss_generic.cpp index 3ab65eec55..fba70a45a6 100644 --- a/bacula/src/win32/filed/vss_generic.cpp +++ b/bacula/src/win32/filed/vss_generic.cpp @@ -328,9 +328,12 @@ bool VSSClientGeneric::Initialize(DWORD dwContext, bool bDuringRestore, bool (*V } // Waits for the async operation to finish and checks the result WaitAndCheckForAsyncOperation(pAsync1.p); - } - else - { + } else { + + /* + * Initialize for restore + */ + WCHAR *xml; HRESULT hr; int fd; -- 2.39.5