Added option in FLAIM to disable direct I/O on Linux and Unix platforms. Re-architected the FTK I/O layer and cleaned up the async interfaces.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@643 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-07-10 23:38:53 +00:00
parent 91816d4c49
commit c44e49e82c
77 changed files with 7192 additions and 9159 deletions

View File

@@ -934,8 +934,7 @@ FSTATIC RCODE flmDbGetSizes(
// Open the file and get its size.
if (RC_BAD( rc = gv_FlmSysData.pFileSystem->openFile( szTmpName,
FLM_IO_RDWR | FLM_IO_SH_DENYNONE | FLM_IO_DIRECT,
&pFileHdl)))
gv_FlmSysData.uiFileOpenFlags, &pFileHdl)))
{
if (rc == FERR_IO_PATH_NOT_FOUND || rc == FERR_IO_INVALID_PATH)
{
@@ -1022,12 +1021,10 @@ FSTATIC RCODE flmDbGetSizes(
// Open the file and get its size.
if (RC_BAD( rc = gv_FlmSysData.pFileSystem->openFile(
szTmpName,
FLM_IO_RDWR | FLM_IO_SH_DENYNONE | FLM_IO_DIRECT,
&pFileHdl)))
if( RC_BAD( rc = gv_FlmSysData.pFileSystem->openFile(
szTmpName, gv_FlmSysData.uiFileOpenFlags, &pFileHdl)))
{
if (rc == FERR_IO_PATH_NOT_FOUND ||
if( rc == FERR_IO_PATH_NOT_FOUND ||
rc == FERR_IO_INVALID_PATH)
{
rc = FERR_OK;
@@ -1040,7 +1037,7 @@ FSTATIC RCODE flmDbGetSizes(
}
else
{
if (RC_BAD( rc = pFileHdl->size( &ui64LastFileSize)))
if( RC_BAD( rc = pFileHdl->size( &ui64LastFileSize)))
{
goto Exit;
}