FTK change. Need to force a flush when a write extends a file without calling extendFile.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@667 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-07-13 21:18:46 +00:00
parent b88f31b616
commit f6479b00d6

View File

@@ -518,6 +518,21 @@ RCODE F_FileHdl::lowLevelWrite(
}
}
}
else
{
if( RC_BAD( rc = size( &ui64CurrFileSize)))
{
goto Exit;
}
if( ui64CurrFileSize <= ui64WriteOffset + uiBytesToWrite)
{
// The file is being extended. We must force a flush
// to ensure that the directory entry is updated.
m_bFlushRequired = TRUE;
}
}
if( !pvBuffer)
{