summaryrefslogtreecommitdiff
path: root/common/dynamic_partition_control_stub.cc
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-03-12 14:28:33 -0500
committerKelvin Zhang <zhangkelvin@google.com>2021-03-24 10:08:49 -0400
commit21a4991833d778725eef1fdbf7866c3aa0f1dbad (patch)
tree5093e3a4c420ff1e81aebd58bc5ee5ebf036b847 /common/dynamic_partition_control_stub.cc
parent569c97eebd46b7c7a7740dea837f2e86475c02c2 (diff)
Make dynamic partition control android return a writable fd
We can return a FileDescriptor object, which encapsulates logic needed to write to a COW. This way, filesystem verfication action can use the turend value directly for computing verity and hash the partition. Test: th Change-Id: Iafe9699ef0cc15961641fc94f8ad2820230a56e1
Diffstat (limited to 'common/dynamic_partition_control_stub.cc')
-rw-r--r--common/dynamic_partition_control_stub.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/common/dynamic_partition_control_stub.cc b/common/dynamic_partition_control_stub.cc
index 05803fe4..dd30a8b6 100644
--- a/common/dynamic_partition_control_stub.cc
+++ b/common/dynamic_partition_control_stub.cc
@@ -98,13 +98,6 @@ DynamicPartitionControlStub::OpenCowWriter(
return nullptr;
}
-FileDescriptorPtr DynamicPartitionControlStub::OpenCowReader(
- const std::string& unsuffixed_partition_name,
- const std::optional<std::string>&,
- bool /*is_append */) {
- return nullptr;
-}
-
bool DynamicPartitionControlStub::MapAllPartitions() {
return false;
}