vold_decrypt: don't show error if unmount fails
Since partition gets lazy unmounted anyway, and a warning
gets written to the log, there's no need to display an error
Change-Id: I1b34d647412dc36f63191e91c4dbcee255d2db16
diff --git a/crypto/vold_decrypt/vold_decrypt.cpp b/crypto/vold_decrypt/vold_decrypt.cpp
index 078cd5f..c718dda 100755
--- a/crypto/vold_decrypt/vold_decrypt.cpp
+++ b/crypto/vold_decrypt/vold_decrypt.cpp
@@ -1372,7 +1372,7 @@
if (is_fstab_symlinked)
Restore_Recovery_Fstab();
- if (!PartitionManager.UnMount_By_Path(PartitionManager.Get_Android_Root_Path(), true)) {
+ if (!PartitionManager.UnMount_By_Path(PartitionManager.Get_Android_Root_Path(), false)) {
// PartitionManager failed to unmount ANDROID_ROOT, this should not happen,
// but in case it does, do a lazy unmount
LOGINFO("WARNING: '%s' could not be unmounted normally!\n", PartitionManager.Get_Android_Root_Path().c_str());
@@ -1383,7 +1383,7 @@
for (size_t i = 0; i < partitions.size(); ++i) {
string mnt_point = "/" + partitions[i];
if(PartitionManager.Is_Mounted_By_Path(mnt_point)) {
- if (!PartitionManager.UnMount_By_Path(mnt_point, true)) {
+ if (!PartitionManager.UnMount_By_Path(mnt_point, false)) {
LOGINFO("WARNING: %s partition could not be unmounted normally!\n", partitions[i].c_str());
umount2(mnt_point.c_str(), MNT_DETACH);
}