filemanager/src/fmbkupengine/src/CMMCScBkupStateValidateDiskSpace.cpp
changeset 33 328cf6fbe40c
parent 14 1957042d8c7e
equal deleted inserted replaced
32:39cf9ced4cc4 33:328cf6fbe40c
   186     __LOG("CMMCScBkupStateValidateDiskSpace::ValidateFreeSpaceBeforeBackupL() - START");
   186     __LOG("CMMCScBkupStateValidateDiskSpace::ValidateFreeSpaceBeforeBackupL() - START");
   187     
   187     
   188     // Calculate the total progress required for the entire backup operation
   188     // Calculate the total progress required for the entire backup operation
   189     uncompressedSize = dataOwners.TotalOperationalSizeL();
   189     uncompressedSize = dataOwners.TotalOperationalSizeL();
   190     __LOG1("CMMCScBkupStateValidateDiskSpace::ValidateFreeSpaceBeforeBackupL() - Total estimated uncompressed size for archive %Ld", uncompressedSize);
   190     __LOG1("CMMCScBkupStateValidateDiskSpace::ValidateFreeSpaceBeforeBackupL() - Total estimated uncompressed size for archive %Ld", uncompressedSize);
   191     const TInt ownerCount = dataOwners.Count();
   191 	//const TInt ownerCount = dataOwners.Count();
   192     
   192     
   193     for( TInt i=0; i<ownerCount; i++ )
   193     //for( TInt i=0; i<ownerCount; i++ )
   194         {
   194     //    {
   195         CMMCScBkupDataOwnerInfo& owner = dataOwners.Owner( i );
   195     //    CMMCScBkupDataOwnerInfo& owner = dataOwners.Owner( i );
   196         // Reset the size of public data to 0. We update this value
   196         // Reset the size of public data to 0. We update this value
   197         // with the compressed size during the compression stage. This
   197         // with the compressed size during the compression stage. This
   198         // is needed in order to create accurate restore information (since
   198         // is needed in order to create accurate restore information (since
   199         // all of the data owner sizing info is written to disk).
   199         // all of the data owner sizing info is written to disk).
   200         // owner.ResetOperationalSize( EMMCScBkupOwnerDataTypePublicData );
   200         // owner.ResetOperationalSize( EMMCScBkupOwnerDataTypePublicData );
   201         }
   201     //    }
   202           
   202               
   203     // Let's check do public files fit in target drive
   203     // Let's check do public files fit in target drive
   204     TInt driveNumber;
   204     TInt driveNumber;
   205     TDriveInfo driveInfo;
   205     TDriveInfo driveInfo;
   206     TVolumeInfo volInfo;
   206     TVolumeInfo volInfo;
   207     TInt8 percentFree(100);
   207     TInt8 percentFree(100);