From 12d95df367b9d579fa208d5b58d30eebd6e5261f Mon Sep 17 00:00:00 2001 From: Qilin Tan Date: Mon, 2 Nov 2020 11:25:09 +0800 Subject: [PATCH] Store result of mount_all for mounted userdata by metadata encryption When the userdata is mounted, its result will be stored and return. But the result is not stored when the userdata is mounted with metadata encryption. Store the result of metadata encryption mount. Bug: 172180818 Test: run cts-on-gsi -m CtsUserspaceRebootHostSideTestCases Change-Id: I88b1b4f6a2b1ed81773e18243cb6c46244dc1ba5 --- fs_mgr/fs_mgr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs_mgr/fs_mgr.cpp b/fs_mgr/fs_mgr.cpp index fe7239332..6294b3f4b 100644 --- a/fs_mgr/fs_mgr.cpp +++ b/fs_mgr/fs_mgr.cpp @@ -1534,6 +1534,8 @@ MountAllResult fs_mgr_mount_all(Fstab* fstab, int mount_mode) { attempted_entry.mount_point}, nullptr)) { ++error_count; + } else if (current_entry.mount_point == "/data") { + userdata_mounted = true; } encryptable = FS_MGR_MNTALL_DEV_IS_METADATA_ENCRYPTED; continue;