FTK change. Added flag to prevent misaligned I/O operations to occur when a file has been opened in directio mode. This will allow us to find and fix sub-optimal I/O operations.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@671 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -299,6 +299,14 @@ Retry_Create:
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
if( bDoDirectIO)
|
||||
{
|
||||
if( (uiIoFlags & FLM_IO_MISALIGNED_OK) == 0)
|
||||
{
|
||||
m_bRequireAlignedIO = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
m_bFileOpened = TRUE;
|
||||
m_bDoDirectIO = bDoDirectIO;
|
||||
@@ -515,7 +523,7 @@ RCODE F_FileHdl::lowLevelRead(
|
||||
}
|
||||
|
||||
#if defined( FLM_LINUX) || defined( FLM_SOLARIS) || defined( FLM_OSX)
|
||||
if( m_bOpenedInAsyncMode)
|
||||
if( m_bOpenedInAsyncMode && pIOBuffer)
|
||||
{
|
||||
struct aiocb * pAIO;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user