Changeset 2633 for box/trunk/bin


Ignore:
Timestamp:
24/02/2010 19:23:14 (2 years ago)
Author:
chris
Message:

Add notification about uploading new file attributes.

Add check for changing file creation times on Windows, to cause the
attributes to be uploaded again.

Location:
box/trunk/bin/bbackupd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp

    r2589 r2633  
    614614                // Explict decryption 
    615615                BackupClientFileAttributes storeAttr(storeAttrEnc); 
     616                 
    616617                // Compare the attributes 
    617                 if(attr.Compare(storeAttr, true, true /* ignore both modification times */)) 
     618                if(attr.Compare(storeAttr, true, 
     619                        true /* ignore both modification times */)) 
    618620                { 
    619621                        // No update necessary 
  • box/trunk/bin/bbackupd/BackupDaemon.h

    r2413 r2633  
    445445                }  
    446446        } 
     447        virtual void NotifyFileUploadingAttributes( 
     448                const BackupClientDirectoryRecord* pDirRecord, 
     449                const std::string& rLocalPath)  
     450        { 
     451                if (mLogAllFileAccess) 
     452                { 
     453                        BOX_NOTICE("Uploading new file attributes: " <<  
     454                                rLocalPath); 
     455                }  
     456        } 
    447457        virtual void NotifyFileUploaded( 
    448458                const BackupClientDirectoryRecord* pDirRecord, 
  • box/trunk/bin/bbackupd/BackupDaemonInterface.h

    r2414 r2633  
    124124                const BackupClientDirectoryRecord* pDirRecord, 
    125125                const std::string& rLocalPath) = 0; 
     126        virtual void NotifyFileUploadingAttributes( 
     127                const BackupClientDirectoryRecord* pDirRecord, 
     128                const std::string& rLocalPath) = 0; 
    126129        virtual void NotifyFileUploaded( 
    127130                const BackupClientDirectoryRecord* pDirRecord, 
Note: See TracChangeset for help on using the changeset viewer.