diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2020-10-23 17:03:59 -0400 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2020-10-30 01:57:40 +0000 |
commit | 9d87d6d80b82872f8f0d15279d74e64105f1a6f2 (patch) | |
tree | b0a07d44a895a52d6967ceb09870700ddd235759 /common/dynamic_partition_control_stub.h | |
parent | 336c2123e8f665e3f06ba1a2dc16d7695f0ce5ac (diff) |
Add [un]mapPartitions APIs to dynamic partition control
During postinstall stage, update_engine needs all target
partitions(system_b, vendor_b) to be mounted. We add 2 APIs to dynamic
partition control, 1 for mounting all partitions, and UnmapAllPartitions for unmap all partitions.
Test: Treehugger
Bug: 168554689
Change-Id: I1047851f6cdae7f39f50bd1d50e6d3bfc0d9a7f5
Diffstat (limited to 'common/dynamic_partition_control_stub.h')
-rw-r--r-- | common/dynamic_partition_control_stub.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/dynamic_partition_control_stub.h b/common/dynamic_partition_control_stub.h index a939cfbb..1fc8a350 100644 --- a/common/dynamic_partition_control_stub.h +++ b/common/dynamic_partition_control_stub.h @@ -62,6 +62,9 @@ class DynamicPartitionControlStub : public DynamicPartitionControlInterface { const std::string& unsuffixed_partition_name, const std::optional<std::string>&, bool is_append) override; + + bool MapAllPartitions() override; + bool UnmapAllPartitions() override; }; } // namespace chromeos_update_engine |