userlibandfileserver/fileserver/sfile/sf_file_cache.cpp
changeset 134 95847726fe57
parent 131 e880629062dd
child 176 af6ec97d9189
equal deleted inserted replaced
133:2a0ada0a1bf8 134:95847726fe57
    29 #include <hal.h>
    29 #include <hal.h>
    30 #include "sf_file_cache.h"
    30 #include "sf_file_cache.h"
    31 #include "sf_cache_man.h"
    31 #include "sf_cache_man.h"
    32 #include "sf_cache_client.h"
    32 #include "sf_cache_client.h"
    33 #include "sf_file_cache_defs.h"
    33 #include "sf_file_cache_defs.h"
       
    34 
       
    35 #ifdef OST_TRACE_COMPILER_IN_USE
       
    36 #include "sf_file_cacheTraces.h"
       
    37 #endif
    34 
    38 
    35 
    39 
    36 // disables flushing of stale cachelines before each write
    40 // disables flushing of stale cachelines before each write
    37 #define LAZY_WRITE
    41 #define LAZY_WRITE
    38 
    42 
  1994 
  1998 
  1995 			// Without this code, retry will indiscriminately write over whatever disk happens to be present.
  1999 			// Without this code, retry will indiscriminately write over whatever disk happens to be present.
  1996 			// However if the write error is to the bootsector remounting will always fail because the boot
  2000 			// However if the write error is to the bootsector remounting will always fail because the boot
  1997 			// sector will have changed and hence the disk is useless.
  2001 			// sector will have changed and hence the disk is useless.
  1998 			// 
  2002 			// 
  1999 			TRACE1(UTF::EBorder, UTraceModuleFileSys::ECMountCBReMount, EF32TraceUidFileSys, DriveNumber());
  2003 			OstTrace1(TRACE_FILESYSTEM, FSYS_ECMOUNTCBREMOUNT2, "drive %d", DriveNumber());
  2000 
  2004 
  2001 			TInt remountSuccess = iDrive->ReMount(*iMount);
  2005 			TInt remountSuccess = iDrive->ReMount(*iMount);
  2002 
  2006 
  2003 			TRACE1(UTF::EBorder, UTraceModuleFileSys::ECMountCBReMountRet, EF32TraceUidFileSys, remountSuccess);
  2007 			OstTrace1(TRACE_FILESYSTEM, FSYS_ECMOUNTCBREMOUNT2RET, "success %d", remountSuccess);
  2004 			if (!remountSuccess)
  2008 			if (!remountSuccess)
  2005 				continue;
  2009 				continue;
  2006 			
  2010 			
  2007 			
  2011 			
  2008 			iMount->Drive().SetChanged(EFalse);
  2012 			iMount->Drive().SetChanged(EFalse);