userlibandfileserver/fileserver/sfile/sf_utl.cpp
branchRCL_3
changeset 117 5b5d147c7838
parent 0 a41df078684a
child 199 189ece41fa29
--- a/userlibandfileserver/fileserver/sfile/sf_utl.cpp	Tue May 11 17:28:22 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_utl.cpp	Tue May 25 14:09:55 2010 +0300
@@ -1067,6 +1067,8 @@
 	if(KReservedSpace == 0 || KDriveNumber == EDriveZ)
 	    return KErrNone;
 
+    ASSERT(aThreshold);
+
     //-- if the drive has a reserved space, take it into account
 	CSessionFs* session=aRequest->Session(); 
 
@@ -1074,8 +1076,7 @@
         aThreshold += KReservedSpace;
 
     //-- ask the corresponding file system if there is aThreshold bytes available.
-    //-- for some reason it's required to be strictly > than aThreshold
-    return aRequest->Drive()->RequestFreeSpaceOnMount(aThreshold+1);
+    return aRequest->Drive()->RequestFreeSpaceOnMount(aThreshold);
 	}