commit | 861e69a4c2ddf42079d4d24f377232966d4a06f9 | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Wed Apr 07 23:06:34 2021 -0700 |
committer | Daniel Rosenberg <drosen@google.com> | Mon Apr 12 21:52:06 2021 -0700 |
tree | 33f5db6cbb292d6ea9126c5695a2ab5a900728fd | |
parent | db25e8e32d0c080d7b4e3baad4efe132410a5ee6 [diff] |
libsnapshot: Zero out leftover ops in CowWriter When opening in append mode, we could write less than what was present before. This could result in data blocks referencing beyond the end of the file, or partially written ops. Zeroing these out will prevent invalid leftovers from potentially causing confusion. Bug: 183985866 Test: cow_api_test Change-Id: I56f0218f3ea5b83c0614d1b86e81a4ca885f5c5e