From 4d5f63ead17208174a886c597969b4473059ce1e Mon Sep 17 00:00:00 2001 From: Seok Hong Date: Mon, 6 Feb 2017 16:11:57 +0900 Subject: [PATCH] Fix the DM Table load fail situation Force filesystem check via fsck can avoid the DM Table load fail situation. Change-Id: I0316a50b02603ee6c20ade534d606b375858d064 Signed-off-by: Seok Hong --- server/engine/dmcrypt-engine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/engine/dmcrypt-engine.cpp b/server/engine/dmcrypt-engine.cpp index 27d4075..8152d76 100644 --- a/server/engine/dmcrypt-engine.cpp +++ b/server/engine/dmcrypt-engine.cpp @@ -279,6 +279,7 @@ void DMCryptEngine::encryptInPlace(const std::string &src_blkdev, const bool isFastEncEnabled) { Ext4Tool ext4tool(src_blkdev); + ext4tool.forceCleanUp(); const unsigned int SRC_BLOCK_SIZE = ext4tool.getBlockSize(); const unsigned int SRC_TOTAL_BLOCK_COUNT = ext4tool.getTotalBlockCount(); -- 2.34.1