Merge "Do not unmount /mnt/product/* when vold starts"

am: 4a625453bf

Change-Id: Idd91865540106b5030f74b26037b61c00719ef28
gugelfrei
Bowgo Tsai 6 years ago committed by android-build-merger
commit 3d4fb41f3d

@ -624,7 +624,8 @@ int VolumeManager::unmountAll() {
while ((mentry = getmntent(fp)) != NULL) {
auto test = std::string(mentry->mnt_dir);
if ((android::base::StartsWith(test, "/mnt/") &&
!android::base::StartsWith(test, "/mnt/vendor")) ||
!android::base::StartsWith(test, "/mnt/vendor") &&
!android::base::StartsWith(test, "/mnt/product")) ||
android::base::StartsWith(test, "/storage/")) {
toUnmount.push_front(test);
}

Loading…
Cancel
Save