Merge "Do not unmount /mnt/product/* when vold starts" am: 4a625453bf
am: 3d4fb41f3d
Change-Id: I264a9ed62e8c1884e928fe17edd35cf99a382129
This commit is contained in:
commit
1c1186618b
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue