Merge "Remove unused mount modes and re-number the modes for consistency" am: 2d0ea90538

Original change: https://android-review.googlesource.com/c/platform/system/vold/+/1605433

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I958437ce02963f69c3498ef829e9bcbef27dabd4
This commit is contained in:
Abhijeet Kaur 2021-03-03 11:12:54 +00:00 committed by Automerger Merge Worker
commit 6111dc99fe
2 changed files with 4 additions and 15 deletions

View file

@ -543,17 +543,10 @@ bool forkAndRemountChild(uid_t uid, pid_t pid, int nsFd, const char* name, void*
case VoldNativeService::REMOUNT_MODE_DEFAULT:
storageSource = "/mnt/runtime/default";
break;
case VoldNativeService::REMOUNT_MODE_READ:
storageSource = "/mnt/runtime/read";
break;
case VoldNativeService::REMOUNT_MODE_WRITE:
case VoldNativeService::REMOUNT_MODE_LEGACY:
case VoldNativeService::REMOUNT_MODE_ANDROID_WRITABLE:
case VoldNativeService::REMOUNT_MODE_INSTALLER:
storageSource = "/mnt/runtime/write";
break;
case VoldNativeService::REMOUNT_MODE_FULL:
storageSource = "/mnt/runtime/full";
break;
case VoldNativeService::REMOUNT_MODE_PASS_THROUGH:
return true;
default:

View file

@ -174,13 +174,9 @@ interface IVold {
const int REMOUNT_MODE_NONE = 0;
const int REMOUNT_MODE_DEFAULT = 1;
const int REMOUNT_MODE_READ = 2;
const int REMOUNT_MODE_WRITE = 3;
const int REMOUNT_MODE_LEGACY = 4;
const int REMOUNT_MODE_INSTALLER = 5;
const int REMOUNT_MODE_FULL = 6;
const int REMOUNT_MODE_PASS_THROUGH = 7;
const int REMOUNT_MODE_ANDROID_WRITABLE = 8;
const int REMOUNT_MODE_INSTALLER = 2;
const int REMOUNT_MODE_PASS_THROUGH = 3;
const int REMOUNT_MODE_ANDROID_WRITABLE = 4;
const int VOLUME_STATE_UNMOUNTED = 0;
const int VOLUME_STATE_CHECKING = 1;