int blockCount ,
int blockSize ,
boolean forceSync ) throws DataStoreException
{
if (blockCount <= 0)
throw new DataStoreException("Block count should be > 0");
if (blockSize <= 0)
throw new DataStoreException("Block size should be > 0");
File atFile = new File(dataFolder,baseName+AbstractBlockBasedDataStore.ALLOCATION_TABLE_SUFFIX);
File dataFile = new File(dataFolder,baseName+AbstractBlockBasedDataStore.DATA_FILE_SUFFIX);
if (atFile.exists())
throw new DataStoreException("Cannot create store filesystem : "+atFile.getAbsolutePath()+" already exists");
if (dataFile.exists())
throw new DataStoreException("Cannot create store filesystem : "+dataFile.getAbsolutePath()+" already exists");
initAllocationTable(atFile,
blockCount,
blockSize,
forceSync);