diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2020-11-05 13:52:00 -0500 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2020-11-23 14:49:17 -0500 |
commit | 91d95fa9454d56f486e49742039ddb92e10cf054 (patch) | |
tree | 12fd299e1333feb82157b245d8fd38e08f0967e6 /common/boot_control_interface.h | |
parent | 098e79a0c348d2636fd102db081b4e03cb30ef9d (diff) |
Do not map dynamic partitions on VABC devices
With VABC, we no longer need to map all partitions before
reading/writing, so don't try to map them.
1. modify GetPartitionDevice to return empty path for target partitions
on VABC
2. Add a separate GetMountableTargetDevice for obtaining a mountable
device path, specifically for postinstall
Test: treehugger
Change-Id: Ib1f608914fc49c677ce7389140ca79b028171191
Diffstat (limited to 'common/boot_control_interface.h')
-rw-r--r-- | common/boot_control_interface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/boot_control_interface.h b/common/boot_control_interface.h index c93de5c5..3b61add3 100644 --- a/common/boot_control_interface.h +++ b/common/boot_control_interface.h @@ -75,6 +75,11 @@ class BootControlInterface { Slot slot, std::string* device) const = 0; + virtual std::optional<PartitionDevice> GetPartitionDevice( + const std::string& partition_name, + uint32_t slot, + uint32_t current_slot, + bool not_in_payload = false) const = 0; // Returns whether the passed |slot| is marked as bootable. Returns false if // the slot is invalid. virtual bool IsSlotBootable(Slot slot) const = 0; |