/* 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);
/*
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.
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]);
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2006-2010 Free Software Foundation Europe e.V.
+ Copyright (C) 2006-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.
virtual bool CloseBackup();
virtual bool CloseRestore();
virtual WCHAR *GetMetadata();
- virtual const char* GetDriverName() { return "VSS WinXP"; };
+#ifdef _WIN64
+ virtual const char* GetDriverName() { return "Win64 VSS"; };
+#else
+ virtual const char* GetDriverName() { return "Win32 VSS"; };
+#endif
private:
virtual bool Initialize(DWORD dwContext, bool bDuringRestore, bool (*VssInitCallback)(JCR *, int) = NULL);
virtual bool WaitAndCheckForAsyncOperation(IVssAsync* pAsync);
virtual bool CloseBackup();
virtual bool CloseRestore();
virtual WCHAR *GetMetadata();
- virtual const char* GetDriverName() { return "VSS Win 2003"; };
+#ifdef _WIN64
+ virtual const char* GetDriverName() { return "Win64 VSS"; };
+#else
+ virtual const char* GetDriverName() { return "Win32 VSS"; };
+#endif
private:
virtual bool Initialize(DWORD dwContext, bool bDuringRestore, bool (*VssInitCallback)(JCR *, int) = NULL);
virtual bool WaitAndCheckForAsyncOperation(IVssAsync* pAsync);
virtual bool CloseBackup();
virtual bool CloseRestore();
virtual WCHAR *GetMetadata();
- virtual const char* GetDriverName() { return "VSS Vista"; };
+#ifdef _WIN64
+ virtual const char* GetDriverName() { return "Win64 VSS"; };
+#else
+ virtual const char* GetDriverName() { return "Win32 VSS"; };
+#endif
private:
virtual bool Initialize(DWORD dwContext, bool bDuringRestore, bool (*VssInitCallback)(JCR *, int) = NULL);
virtual bool WaitAndCheckForAsyncOperation(IVssAsync* pAsync);