summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-10-24 20:31:13 +0000
committerChris Wilson <chris+github@qwirx.com>2011-10-24 20:31:13 +0000
commitbe9a51e36a54deab6f8e785af5b3052058a1d070 (patch)
treeb1cf4888474daa6ec51245584806cd6a4dcb7585 /bin
parenta23059ee905303defdb87803fa52d24ccdb83279 (diff)
Add debug logging for conversion from VSS to real path.
Diffstat (limited to 'bin')
-rw-r--r--bin/bbackupd/BackupClientDirectoryRecord.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp
index 038e91f3..0e7fb92a 100644
--- a/bin/bbackupd/BackupClientDirectoryRecord.cpp
+++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp
@@ -107,12 +107,21 @@ std::string BackupClientDirectoryRecord::ConvertVssPathToRealPath(
const Location& rBackupLocation)
{
#ifdef ENABLE_VSS
+ BOX_TRACE("VSS: ConvertVssPathToRealPath: mIsSnapshotCreated = " <<
+ rBackupLocation.mIsSnapshotCreated);
+ BOX_TRACE("VSS: ConvertVssPathToRealPath: File/Directory Path = " <<
+ rVssPath.substr(0, rBackupLocation.mSnapshotPath.length()));
+ BOX_TRACE("VSS: ConvertVssPathToRealPath: Snapshot Path = " <<
+ rBackupLocation.mSnapshotPath);
if (rBackupLocation.mIsSnapshotCreated &&
rVssPath.substr(0, rBackupLocation.mSnapshotPath.length()) ==
rBackupLocation.mSnapshotPath)
{
- return rBackupLocation.mPath +
+ std::string convertedPath = rBackupLocation.mPath +
rVssPath.substr(rBackupLocation.mSnapshotPath.length());
+ BOX_TRACE("VSS: ConvertVssPathToRealPath: Converted Path = " <<
+ convertedPath);
+ return convertedPath;
}
#endif