Merge "Create subdirs in system_ce/ for multi-user backup"

am: 625203444b

Change-Id: Ifb251a875ae2245254ff113c81cac8a9205daf17
This commit is contained in:
Annie Meng 2019-01-17 09:10:57 -08:00 committed by android-build-merger
commit 33a5634374

View file

@ -140,6 +140,15 @@ static bool prepare_subdirs(const std::string& volume_uuid, int user_id, int fla
if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/vold")) return false; if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/vold")) return false;
if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/storaged")) return false; if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/storaged")) return false;
if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/rollback")) return false; if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/rollback")) return false;
auto system_ce_path = android::vold::BuildDataSystemCePath(user_id);
if (!prepare_dir(sehandle, 0700, AID_SYSTEM, AID_SYSTEM, system_ce_path + "/backup")) {
return false;
}
if (!prepare_dir(sehandle, 0700, AID_SYSTEM, AID_SYSTEM,
system_ce_path + "/backup_stage")) {
return false;
}
} }
} }
return true; return true;