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:
@@ -379,6 +379,40 @@ Exit:
|
||||
return( rc);
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
Desc: This routine reads the header information in a FLAIM database,
|
||||
verifies the password, and returns the file header and log
|
||||
header information.
|
||||
*****************************************************************************/
|
||||
RCODE flmGetHdrInfo(
|
||||
F_SuperFileHdl * pSFileHdl,
|
||||
XFLM_DB_HDR * pDbHdr,
|
||||
FLMUINT32 * pui32CalcCRC)
|
||||
{
|
||||
RCODE rc = NE_XFLM_OK;
|
||||
IF_FileHdl * pCFileHdl = NULL;
|
||||
|
||||
if( RC_BAD( rc = pSFileHdl->getFileHdl( 0, FALSE, &pCFileHdl)))
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
if( RC_BAD( rc = flmReadAndVerifyHdrInfo( NULL, pCFileHdl,
|
||||
pDbHdr, pui32CalcCRC)))
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
Exit:
|
||||
|
||||
if( pCFileHdl)
|
||||
{
|
||||
pCFileHdl->Release();
|
||||
}
|
||||
|
||||
return( rc);
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
Desc: This routine reads and verifies the information contained in the
|
||||
file header and log header of a FLAIM database.
|
||||
|
||||
Reference in New Issue
Block a user