Fix migration for loading 0.9.x file systems
This commit is contained in:
parent
4de805ae41
commit
8221e76f3a
@ -104,7 +104,7 @@ unique_ref<BlockStore2> CryDevice::CreateIntegrityEncryptedBlockStore(unique_ref
|
||||
#ifndef CRYFS_NO_COMPATIBILITY
|
||||
if (!configFile->config()->HasVersionNumbers()) {
|
||||
IntegrityBlockStore2::migrateFromBlockstoreWithoutVersionNumbers(encryptedBlockStore.get(), integrityFilePath, myClientId);
|
||||
configFile->config()->SetBlocksizeBytes(configFile->config()->BlocksizeBytes() + IntegrityBlockStore2::HEADER_LENGTH);
|
||||
configFile->config()->SetBlocksizeBytes(configFile->config()->BlocksizeBytes() + IntegrityBlockStore2::HEADER_LENGTH - blockstore::BlockId::BINARY_LENGTH); // Minus BlockId size because EncryptedBlockStore doesn't store the BlockId anymore (that was moved to IntegrityBlockStore)
|
||||
configFile->config()->SetHasVersionNumbers(true);
|
||||
configFile->save();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user