Required updates due to FTK API changes.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@543 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -1753,19 +1753,17 @@ FSTATIC RCODE flmRestoreFile(
|
||||
|
||||
// Unix systems can have sector sizes that are larger than our
|
||||
// typical 4K database blocks. The Unix implementation of SectorWrite
|
||||
// (called by WriteBlock) will write the passed-in block and clobber any
|
||||
// (called by writeBlock) will write the passed-in block and clobber any
|
||||
// additional data beyond the end of the block to the end of the sector if
|
||||
// it has enough room in the block buffer to write a full sector. If the
|
||||
// block buffer is less than a full sector, the Unix SectorWrite will only
|
||||
// write out the amount requested, not a full sector.
|
||||
|
||||
if( RC_BAD( rc = pSFile->writeBlock( uiBlkAddr,
|
||||
uiBlockSize, pucBlkBuf, uiBlockSize,
|
||||
NULL, &uiBytesWritten)))
|
||||
uiBlockSize, pucBlkBuf, NULL, &uiBytesWritten)))
|
||||
#else
|
||||
if( RC_BAD( rc = pSFile->writeBlock( uiBlkAddr,
|
||||
uiBlockSize, pucBlkBuf, uiBlkBufSize,
|
||||
NULL, &uiBytesWritten)))
|
||||
uiBlockSize, pucBlkBuf, NULL, &uiBytesWritten)))
|
||||
#endif
|
||||
{
|
||||
if( rc == NE_FLM_IO_PATH_NOT_FOUND ||
|
||||
@@ -1786,12 +1784,10 @@ FSTATIC RCODE flmRestoreFile(
|
||||
|
||||
#ifdef FLM_UNIX
|
||||
if( RC_BAD( rc = pSFile->writeBlock( uiBlkAddr,
|
||||
uiBlockSize, pucBlkBuf, uiBlockSize,
|
||||
NULL, &uiBytesWritten)))
|
||||
uiBlockSize, pucBlkBuf, NULL, &uiBytesWritten)))
|
||||
#else
|
||||
if( RC_BAD( rc = pSFile->writeBlock( uiBlkAddr,
|
||||
uiBlockSize, pucBlkBuf, uiBlkBufSize,
|
||||
NULL, &uiBytesWritten)))
|
||||
uiBlockSize, pucBlkBuf, NULL, &uiBytesWritten)))
|
||||
#endif
|
||||
{
|
||||
goto Exit;
|
||||
|
||||
Reference in New Issue
Block a user