userlibandfileserver/fileserver/sfat32/sl_mnt.cpp
changeset 199 189ece41fa29
parent 189 a5496987b1da
child 244 a77889bee936
--- a/userlibandfileserver/fileserver/sfat32/sl_mnt.cpp	Thu Jul 01 17:57:33 2010 +0100
+++ b/userlibandfileserver/fileserver/sfat32/sl_mnt.cpp	Fri Jul 09 13:13:20 2010 +0100
@@ -551,10 +551,8 @@
         return;
         }
 
-    if(LockStatus() != 0)
-        {//-- can't finalise the volume if it has opened objects and not in the consistent state.
-         //-- Theoretically, we can finalise the mount if we have files opened only for read, but at present,
-         //-- it's impossible to detect such situation.
+    if(Locked())
+        {//-- can't finalise the volume if it has opened disk access objects, like Format or RawAccess
         User::Leave(KErrInUse);
         }
 
@@ -4295,7 +4293,7 @@
     TInt nRes;
 
     if(LockStatus()!=0)
-        {
+        {//-- can't run if the volume has opened objects, like files, directories, formats etc.
 		__PRINT(_L("CFatMountCB::ScanDrive() locked!\n"));
         return KErrInUse;
         }