userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp
changeset 199 189ece41fa29
parent 189 a5496987b1da
child 254 1560c419b176
equal deleted inserted replaced
189:a5496987b1da 199:189ece41fa29
   216 @leave  if write error occured.        
   216 @leave  if write error occured.        
   217 */
   217 */
   218 void CFatMountCB::SetVolumeCleanL(TBool aClean) 
   218 void CFatMountCB::SetVolumeCleanL(TBool aClean) 
   219     {
   219     {
   220 
   220 
   221 	//-- The volume can't be set clean if there are objects opened on it. This precondition must be checked before calling this function
   221 	//-- 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
   222     if(aClean && LockStatus()!=0)
   222     if(aClean && Locked())
   223         {
   223         {
   224         __PRINT1(_L("#- CFatMountCB::SetVolumeCleanL drive:%d isn't free!"),DriveNumber());
   224         __PRINT1(_L("#- CFatMountCB::SetVolumeCleanL drive:%d isn't free!"),DriveNumber());
   225         ASSERT(0);
   225         ASSERT(0);
   226         User::Leave(KErrInUse);
   226         User::Leave(KErrInUse);
   227         return;
   227         return;