userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp
branchRCL_3
changeset 28 5b5d147c7838
parent 22 2f92ad2dc5db
child 42 a179b74831c9
equal deleted inserted replaced
26:c734af59ce98 28:5b5d147c7838
   890 
   890 
   891     //-- mount-specific volume parameters queries that might not be handled by CFatMountCB::VolumeL
   891     //-- mount-specific volume parameters queries that might not be handled by CFatMountCB::VolumeL
   892     if(aLevel == EMountVolParamQuery)
   892     if(aLevel == EMountVolParamQuery)
   893         {
   893         {
   894         ASSERT(ConsistentState()); //-- volume state shall be consistent, otherwise its parameters do not make sense
   894         ASSERT(ConsistentState()); //-- volume state shall be consistent, otherwise its parameters do not make sense
       
   895 		if(iRamDrive)
       
   896 			return KErrNotSupported; //-- it requires knowledge of free space on the volume
       
   897 
   895         switch(aOption)
   898         switch(aOption)
   896             {
   899             {
   897             //-- Request a certain amount of free space on the volume.
   900             //-- Request a certain amount of free space on the volume.
   898             case ESQ_RequestFreeSpace:
   901             case ESQ_RequestFreeSpace:
   899                 {
   902                 {
   925                 }
   928                 }
   926         
   929         
   927             //-- A request to obtain size of the mounted volume without blocking (CMountCB::VolumeL() can block).
   930             //-- A request to obtain size of the mounted volume without blocking (CMountCB::VolumeL() can block).
   928             case ESQ_MountedVolumeSize:
   931             case ESQ_MountedVolumeSize:
   929                 {
   932                 {
   930                 if(iRamDrive)
       
   931                     return KErrNotSupported; //-- it requires knowledge of free space on the volume
       
   932     
       
   933                 TUint64* pVal = (TUint64*)aParam; 
   933                 TUint64* pVal = (TUint64*)aParam; 
   934                 *pVal = iSize; //-- physical drive size
   934                 *pVal = iSize; //-- physical drive size
   935 
   935 
   936                 //-- take into account space occupied by FAT table, etc.
   936                 //-- take into account space occupied by FAT table, etc.
   937                 *pVal -= ClusterBasePosition(); 
   937                 *pVal -= ClusterBasePosition();