diff -r 43365a9b78a3 -r d8d70de2bd36 userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp --- a/userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp Tue Jul 06 15:50:07 2010 +0300 +++ b/userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp Wed Aug 18 11:08:29 2010 +0300 @@ -218,8 +218,8 @@ void CFatMountCB::SetVolumeCleanL(TBool aClean) { - //-- The volume can't be set clean if there are objects opened on it. This precondition must be checked before calling this function - if(aClean && LockStatus()!=0) + //-- The volume can't be set clean if there are disk access objects opened on it. This precondition must be checked before calling this function + if(aClean && Locked()) { __PRINT1(_L("#- CFatMountCB::SetVolumeCleanL drive:%d isn't free!"),DriveNumber()); ASSERT(0); @@ -935,12 +935,7 @@ case ESQ_MountedVolumeSize: { TUint64* pVal = (TUint64*)aParam; - *pVal = iSize; //-- physical drive size - - //-- take into account space occupied by FAT table, etc. - *pVal -= ClusterBasePosition(); - *pVal=(*pVal >> ClusterSizeLog2()) << ClusterSizeLog2(); //-- round down to cluster size - + *pVal = VolumeSizeInBytes(); __PRINT1(_L("MountControl() MountedVolumeSize:%LU"), *pVal); return KErrNone; }