Improve internal memory unmounting 59/168759/5
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 30 Jan 2018 12:26:24 +0000 (13:26 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 7 Feb 2018 08:42:04 +0000 (08:42 +0000)
commitf1f4c07a556f530a7bcbe9e8e46dc34727d66d15
tree58e4d995865736281e73a6f5d6d69283b6bccd41
parent6844df5967e4c01a7fbb1b210b274e25d9e36218
Improve internal memory unmounting

On some devices there are multiple mounts under /opt/usr. We have to unmount
all the others to unlock the /opt/usr unmounting.

With this commit ode will iterate over all matching entries and try to unmount
all of them. Some of them are unmounted externally and may disappear before the
call to umount() in ode causing EINVAL error. Ode will ignore it.

Change-Id: I306cc61436e4c151a8396a6d26fefc32a9f93826
server/internal-encryption.cpp
server/misc.cpp
server/misc.h