Optional source filesystem verification in minor version 3.
In minor version 3, we use per-operation source hash to verify the source
instead of whole filesystem hash, but if target partition doesn't match,
we still need to check the source partition to see if it is the cause.
Bug: 23182225
TEST=Applied a minor version 3 delta payload.
TEST=cros_workon_make update_engine --test
Change-Id: I1f32c292d2938540b63f086cf4988d64620702a5
diff --git a/payload_consumer/filesystem_verifier_action.h b/payload_consumer/filesystem_verifier_action.h
index 0a66b01..94f1b4e 100644
--- a/payload_consumer/filesystem_verifier_action.h
+++ b/payload_consumer/filesystem_verifier_action.h
@@ -45,6 +45,7 @@
enum class VerifierMode {
kComputeSourceHash,
kVerifyTargetHash,
+ kVerifySourceHash,
};
class FilesystemVerifierAction : public InstallPlanAction {
@@ -92,7 +93,7 @@
void Cleanup(ErrorCode code);
// The type of the partition that we are verifying.
- const VerifierMode verifier_mode_;
+ VerifierMode verifier_mode_;
// The BootControlInterface used to get the partitions based on the slots.
const BootControlInterface* const boot_control_;