Warn in migration that it might take a while

This commit is contained in:
Sebastian Messmer 2016-06-23 22:32:19 -07:00
parent 86c2144a37
commit ee1f0f4d3a

View File

@ -11,7 +11,7 @@ namespace blockstore {
#ifndef CRYFS_NO_COMPATIBILITY #ifndef CRYFS_NO_COMPATIBILITY
void VersionCountingBlockStore::migrateFromBlockstoreWithoutVersionNumbers(BlockStore *baseBlockStore, const bf::path &integrityFilePath) { void VersionCountingBlockStore::migrateFromBlockstoreWithoutVersionNumbers(BlockStore *baseBlockStore, const bf::path &integrityFilePath) {
std::cout << "Migrating file system for integrity features..." << std::flush; std::cout << "Migrating file system for integrity features. This can take a while..." << std::flush;
KnownBlockVersions knownBlockVersions(integrityFilePath); KnownBlockVersions knownBlockVersions(integrityFilePath);
baseBlockStore->forEachBlock([&baseBlockStore, &knownBlockVersions] (const Key &key) { baseBlockStore->forEachBlock([&baseBlockStore, &knownBlockVersions] (const Key &key) {
auto block = baseBlockStore->load(key); auto block = baseBlockStore->load(key);