commit | 9d0ab6267c2434af0ede0cadd1c2a0540102b956 | [log] [tgz] |
---|---|---|
author | Victor Hsieh <victorhsieh@google.com> | Mon Apr 26 17:07:02 2021 -0700 |
committer | Victor Hsieh <victorhsieh@google.com> | Tue Apr 27 09:44:35 2021 -0700 |
tree | 6ebaf5661800cad33767706d4ecb4e27760f8911 | |
parent | 8e161b54c9617a7e43e1eb27d3204be240888e84 [diff] |
authfs: support resizing file There are three major changes: 1. Add resize() to MerkleLeaves as the simple hash container. 2. Handle resize for a writable file. The special case is that the hash of the new last chunk can change, and the only way to calculate is to read the original data back. 3. Handle the size change in FUSE. Bug: 186265793 Test: atest Test: dex2oat succeeds (with more local changes) Change-Id: I1ec20b6f0c69fd3ec24a6d04fc34583962265479