From 24852e61152feebf554bd0e3ad7df8f30f947fb9 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 13 Feb 2012 14:56:13 +0100 Subject: [PATCH] Tweak VSS --- bacula/src/filed/job.c | 1 + bacula/src/findlib/find.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index d405062505..6636cc11d0 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1902,6 +1902,7 @@ static int backup_cmd(JCR *jcr) /* tell vss which drives to snapshot */ char szWinDriveLetters[27]; *szWinDriveLetters=0; + /* Plugin driver can return drive letters */ 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); diff --git a/bacula/src/findlib/find.c b/bacula/src/findlib/find.c index cf707265f6..df615480fd 100644 --- a/bacula/src/findlib/find.c +++ b/bacula/src/findlib/find.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2010 Free Software Foundation Europe e.V. + Copyright (C) 2000-2012 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -122,8 +122,9 @@ get_win32_driveletters(FF_PKT *ff, char* szDrives) return 0; #endif int nCount; - /* Can be already filled by plugin, so check that everything - * is on upper case. TODO: can check for dupplicate? + /* + * Can be already filled by plugin, so check that all + * letters are in upper case. There should be no duplicates. */ for (nCount = 0; nCount < 27 && szDrives[nCount] ; nCount++) { szDrives[nCount] = toupper(szDrives[nCount]); -- 2.39.5