OSDN Git Service

Choose options format using property
authorPaul Crowley <paulcrowley@google.com>
Sun, 22 Mar 2020 15:02:06 +0000 (08:02 -0700)
committerPaul Crowley <paulcrowley@google.com>
Tue, 7 Apr 2020 14:35:16 +0000 (07:35 -0700)
commit4073c0b5241b635cb59e9e8a75ddcc783b5a99ce
tree8a5ff7122e6ea8b2ff91c3aa3e0e85684723db50
parent131365a3e560224edd48f73ecf45bcc57cad4c6d
Choose options format using property

To make it easier to support disk formats created using old versions
of dm-default-key with new kernels, choose the disk format to use
based on options_format_version and first_api_version properties
instead of checking the version number of the kernel module.

Bug: 150761030
Test: crosshatch and cuttlefish boot normally; cuttlefish
    fails with "default-key: Not enough arguments" as expected when
    option is set to 1
Cherry-Picked-From: f56d553babc368e557fe90513e78a5ba06626b0d
Merged-In: Ib51071b7c316ce074de72439741087b18335048c
Change-Id: Ib51071b7c316ce074de72439741087b18335048c
MetadataCrypt.cpp