Fix mount state check in internal encryption 22/160722/23
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 27 Nov 2017 13:22:25 +0000 (14:22 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 28 Nov 2017 15:34:57 +0000 (16:34 +0100)
commit215d6f5639fe22c66f766e309ef66c842d66d258
tree00967440422eb937890abed7647260f7ce2193d6
parent72695baa95f58a14813f4b45800e081019617114
Fix mount state check in internal encryption

Oded is keeping the mount state of internal memory in a variable. If oded is
restarted, the internal memory is mounted by ode-recovery (during FOTA) or
manaully via the command line oded may end up with invalid mount state. This
commit makes ode check the actual state of the dm mapping instead.

Change-Id: I2c564e8db858880840ea3dae6d9ebc1fb4f0a7c9
server/engine/encryption/dmcrypt-engine.cpp
server/engine/encryption/dmcrypt-engine.h