From: Kern Sibbald Date: Wed, 14 Apr 2010 11:04:59 +0000 (+0200) Subject: Tweak comments + indenting X-Git-Tag: Release-5.2.1~1480 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cbfe8e1c9fd311e7ed6d102b35996a31a6e95497;p=bacula%2Fbacula Tweak comments + indenting --- 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;