OSDN Git Service

verity: move metadata after the hash tree
authorSami Tolvanen <samitolvanen@google.com>
Fri, 25 Sep 2015 13:57:41 +0000 (14:57 +0100)
committerSami Tolvanen <samitolvanen@google.com>
Wed, 14 Oct 2015 17:10:20 +0000 (18:10 +0100)
Move the verity metadata block after the hash tree to make locating
it easier and more reliable.

Needs matching changes from
  I6945cbab99e214566a1f9d3702333f2dbbc35816

Change-Id: Ide48f581bbba77aed6132f77b309db71630d81ed

verity/build_verity_metadata.py

index 547e606..51e629a 100755 (executable)
@@ -44,7 +44,7 @@ def build_verity_table(block_device, data_blocks, root_hash, salt):
                 BLOCK_SIZE,
                 BLOCK_SIZE,
                 data_blocks,
-                data_blocks + (METADATA_SIZE / BLOCK_SIZE),
+                data_blocks,
                 root_hash,
                 salt)
     return table