Merge "fs_mgr: overlay: only use system_<other> if other slot suffix not blank" into qt-dev

This commit is contained in:
David Anderson 2019-06-22 00:07:56 +00:00 committed by Android (Google) Code Review
commit e8d1fac1a6

View file

@ -621,7 +621,9 @@ std::string fs_mgr_overlayfs_scratch_device() {
if (!dm.GetDmDevicePathByName(partition_name, &path)) {
// non-DAP A/B device?
if (fs_mgr_access(super_device)) return "";
path = kPhysicalDevice + "system" + (slot_number ? "_a" : "_b");
auto other_slot = fs_mgr_get_other_slot_suffix();
if (other_slot.empty()) return "";
path = kPhysicalDevice + "system" + other_slot;
}
}
return scratch_device_cache = path;