From b03e0cffd441df0da5ef7ff391e4736d6eb25b36 Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Mon, 13 Jan 2020 16:05:07 +0000 Subject: [PATCH] Reduce log spam when unmounting /data We are only interested in unmount that failed. Test: /system/bin/vdc checkpoint startCheckpoint 1 Test: adb reboot userspace Bug: 135984674 Bug: 147584366 Bug: 143970043 Change-Id: I9e0b174785fbaf76a95b13457a80765bfa856518 --- fs_mgr/fs_mgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs_mgr/fs_mgr.cpp b/fs_mgr/fs_mgr.cpp index 17982b3e0..03c7943e5 100644 --- a/fs_mgr/fs_mgr.cpp +++ b/fs_mgr/fs_mgr.cpp @@ -1380,8 +1380,8 @@ static bool fs_mgr_unmount_all_data_mounts(const std::string& block_device) { // Now proceed with other bind mounts on top of /data. for (const auto& entry : proc_mounts) { if (entry.blk_device == block_device) { - LINFO << __FUNCTION__ << "(): Umount " << entry.mount_point; if (umount2(entry.mount_point.c_str(), 0) != 0) { + PERROR << __FUNCTION__ << "(): Failed to umount " << entry.mount_point; umount_done = false; } }