userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp
branchRCL_3
changeset 117 5b5d147c7838
parent 87 2f92ad2dc5db
child 249 a179b74831c9
--- a/userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp	Tue May 11 17:28:22 2010 +0300
+++ b/userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp	Tue May 25 14:09:55 2010 +0300
@@ -892,6 +892,9 @@
     if(aLevel == EMountVolParamQuery)
         {
         ASSERT(ConsistentState()); //-- volume state shall be consistent, otherwise its parameters do not make sense
+		if(iRamDrive)
+			return KErrNotSupported; //-- it requires knowledge of free space on the volume
+
         switch(aOption)
             {
             //-- Request a certain amount of free space on the volume.
@@ -927,9 +930,6 @@
             //-- A request to obtain size of the mounted volume without blocking (CMountCB::VolumeL() can block).
             case ESQ_MountedVolumeSize:
                 {
-                if(iRamDrive)
-                    return KErrNotSupported; //-- it requires knowledge of free space on the volume
-    
                 TUint64* pVal = (TUint64*)aParam; 
                 *pVal = iSize; //-- physical drive size