XFLAIM changes. Minor changes needed due to FTK updates.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@734 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-08-03 19:25:44 +00:00
parent 19c68c08bc
commit 2c4c834092
7 changed files with 79 additions and 84 deletions

View File

@@ -131,13 +131,17 @@ RCODE FLMAPI F_DbSystem::dbCreate(
{
goto Exit;
}
bNewDatabase = TRUE;
pDatabase->m_uiMaxFileSize = gv_XFlmSysData.uiMaxFileSize;
// Link the F_Db object to the F_Database object.
rc = pDb->linkToDatabase( pDatabase);
f_mutexUnlock( gv_XFlmSysData.hShareMutex);
bMutexLocked = FALSE;
if (RC_BAD( rc))
{
goto Exit;
@@ -145,18 +149,6 @@ RCODE FLMAPI F_DbSystem::dbCreate(
// If the database has not already been created, do so now.
// Determine what to set file block size to.
if (pCreateOpts != NULL)
{
pDb->m_pSFileHdl->setBlockSize(
flmAdjustBlkSize( pCreateOpts->uiBlockSize));
}
else
{
pDb->m_pSFileHdl->setBlockSize( XFLM_DEFAULT_BLKSIZ);
}
if (RC_OK( gv_XFlmSysData.pFileSystem->doesFileExist( pszFilePath)))
{
rc = RC_SET( NE_XFLM_FILE_EXISTS);
@@ -167,6 +159,7 @@ RCODE FLMAPI F_DbSystem::dbCreate(
pDb->m_pSFileHdl->setMaxAutoExtendSize( gv_XFlmSysData.uiMaxFileSize);
pDb->m_pSFileHdl->setExtendSize( pDb->m_pDatabase->m_uiFileExtendSize);
if (RC_BAD( rc = pDb->m_pSFileHdl->createFile( 0)))
{
goto Exit;