summaryrefslogtreecommitdiff
path: root/aosp/dynamic_partition_control_android.h
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 /aosp/dynamic_partition_control_android.h
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 'aosp/dynamic_partition_control_android.h')
-rw-r--r--aosp/dynamic_partition_control_android.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/aosp/dynamic_partition_control_android.h b/aosp/dynamic_partition_control_android.h
index 4e75a9b9..c506ac97 100644
--- a/aosp/dynamic_partition_control_android.h
+++ b/aosp/dynamic_partition_control_android.h
@@ -104,9 +104,9 @@ class DynamicPartitionControlAndroid : public DynamicPartitionControlInterface {
const std::string& unsuffixed_partition_name,
const std::optional<std::string>& source_path,
bool is_append) override;
- FileDescriptorPtr OpenCowReader(const std::string& unsuffixed_partition_name,
- const std::optional<std::string>&,
- bool is_append = false) override;
+ FileDescriptorPtr OpenCowFd(const std::string& unsuffixed_partition_name,
+ const std::optional<std::string>&,
+ bool is_append = false) override;
bool UnmapAllPartitions() override;