Changeset 3031 for box/trunk/bin
- Timestamp:
- 25/10/2011 23:27:56 (7 months ago)
- Location:
- box/trunk/bin/bbackupd
- Files:
-
- 2 edited
-
BackupClientDirectoryRecord.cpp (modified) (10 diffs)
-
BackupClientDirectoryRecord.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp
r3029 r3031 259 259 try 260 260 { 261 rNotifier.NotifyScanDirectory(this, 262 ConvertVssPathToRealPath(rLocalPath, rBackupLocation)); 261 std::string nonVssDirPath = ConvertVssPathToRealPath(rLocalPath, 262 rBackupLocation); 263 rNotifier.NotifyScanDirectory(this, nonVssDirPath); 263 264 264 265 dirHandle = ::opendir(rLocalPath.c_str()); … … 270 271 { 271 272 rNotifier.NotifyDirListFailed(this, 272 ConvertVssPathToRealPath(rLocalPath, rBackupLocation),273 nonVssDirPath, 273 274 "Access denied"); 274 275 } … … 276 277 { 277 278 rNotifier.NotifyDirListFailed(this, 278 ConvertVssPathToRealPath(rLocalPath, rBackupLocation),279 nonVssDirPath, 279 280 strerror(errno)); 280 281 } … … 282 283 // Report the error (logs and eventual email 283 284 // to administrator) 284 SetErrorWhenReadingFilesystemObject(rParams, rLocalPath); 285 SetErrorWhenReadingFilesystemObject(rParams, 286 nonVssDirPath); 285 287 // Ignore this directory for now. 286 288 return; … … 1067 1069 { 1068 1070 latestObjectID = UploadFile(rParams, 1069 filename, storeFilename, 1071 filename, 1072 nonVssFilePath, 1073 storeFilename, 1070 1074 fileSize, modTime, 1071 1075 attributesHash, … … 1609 1613 BackupClientDirectoryRecord::SyncParams &rParams, 1610 1614 const std::string &rFilename, 1615 const std::string &rNonVssFilePath, 1611 1616 const BackupStoreFilename &rStoreFilename, 1612 1617 int64_t FileSize, … … 1642 1647 { 1643 1648 // Found an old version 1644 rNotifier.NotifyFileUploadingPatch(this, 1645 r Filename);1649 rNotifier.NotifyFileUploadingPatch(this, 1650 rNonVssFilePath); 1646 1651 1647 1652 // Get the index … … 1702 1707 { 1703 1708 // below threshold or nothing to diff from, so upload whole 1704 rNotifier.NotifyFileUploading(this, r Filename);1709 rNotifier.NotifyFileUploading(this, rNonVssFilePath); 1705 1710 1706 1711 // Prepare to upload, getting a stream which will encode the file as we go along … … 1763 1768 } 1764 1769 rNotifier.NotifyFileUploadServerError(this, 1765 r Filename, type, subtype);1770 rNonVssFilePath, type, subtype); 1766 1771 } 1767 1772 } … … 1771 1776 } 1772 1777 1773 rNotifier.NotifyFileUploaded(this, rFilename, FileSize, uploadedSize); 1778 rNotifier.NotifyFileUploaded(this, rNonVssFilePath, FileSize, 1779 uploadedSize); 1774 1780 1775 1781 // Return the new object ID of this file -
box/trunk/bin/bbackupd/BackupClientDirectoryRecord.h
r2995 r3031 157 157 int64_t UploadFile(SyncParams &rParams, 158 158 const std::string &rFilename, 159 const std::string &rNonVssFilePath, 159 160 const BackupStoreFilename &rStoreFilename, 160 161 int64_t FileSize, box_time_t ModificationTime,
Note: See TracChangeset
for help on using the changeset viewer.
