Ext4Engine: Remove unneccesary unmount in decryption 45/116445/2
authorSungbae Yoo <sungbae.yoo@samsung.com>
Fri, 24 Feb 2017 09:31:47 +0000 (18:31 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Fri, 24 Feb 2017 09:36:54 +0000 (01:36 -0800)
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I1e5159f97bedbd0b0b5adeab0a0d8ad966032044

server/engine/encryption/ext4-engine.cpp

index 41e029d..4e47551 100644 (file)
@@ -367,10 +367,6 @@ void Ext4Engine::decrypt(const Ext4Engine::data& key, unsigned int options)
                throw runtime::Exception("failed get policy");
        }
 
-       if (::umount(destination.c_str())) {
-               throw runtime::Exception(runtime::GetSystemErrorMessage());
-       }
-
        runtime::File encrypted(destination + "/" ENCRYPTION_DIR);
 
        unsigned long long totalSize = getUsedSpace(source), current = 0;