InternalEncryption: make umount logic more error proof 28/144428/5
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 16 Aug 2017 15:26:06 +0000 (17:26 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Mon, 11 Sep 2017 11:26:20 +0000 (13:26 +0200)
commit9b73e1465d6d5c6acc3c06f551569348d3dd9388
treec245d677af75c71dc1494dc2aab4c456532638b1
parentabfe83d16f5ee329393e6d3793b7438285b64946
InternalEncryption: make umount logic more error proof

Don't umount if the device is not already mounted.
Try to umount if the device is mounted more then once (bind).

Change-Id: I0656146225fb0df429a4da1af743bc1d1cbdb9f9
server/internal-encryption.cpp