commit | 724396ed8dbf71ce2744e916fec2e6aec05d1041 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Apr 17 14:09:23 2014 -0700 |
committer | Colin Cross <ccross@android.com> | Mon Apr 28 17:19:31 2014 -0700 |
tree | d77476d19a5adc3fe851a6fcfa3f468847899ccb | |
parent | f9fd34fe774ba07fab9d45ce75d930f7b19520e4 [diff] |
verity: add C++ version of build_verity_tree that handles sparse files A C++ version can reuse libsparse to calculate the verity hash tree of a sparse file without unsparsing it. In addition to saving disk space, it also cuts the time taken in half by optimizing out the hash calculation for skipped blocks that are known to be zero. Change-Id: I882fe3a417dc2c83bb0e6cd974b6a886f8bc8ac3