summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2020-09-14 17:05:04 -0700
committerDavid Anderson <dvander@google.com>2020-09-15 16:15:41 -0700
commita889c87b0f6633e4f6167aaa7af3977c0285cc18 (patch)
tree7b45eb9d862d9bb128073efe5afef4b6f42ab5e0 /libsparse/sparse.cpp
parenta652877bd6a142cd98f704f73b1c3fd472ca57ab (diff)
libsnapshot: Add an append mode to CowWriter.
When in append mode, CowWriter will re-open the existing COW and resume writing at the end of the old data position. All existing operations will be reimported and buffered in memory. The size calculation has been simplified to make this work. We now advance ops_offset and no longer track the number of bytes written. Additionally, a "header_size" field has been added to the header. This was missing from the original format and is useful for introducing forward compatibility later. Finally, Finalize has been renamed to Flush. It's still mandatory, but it can be called multiple times to continue appending data without reopening. Bug: 168554689 Test: cow_api_test gtest Change-Id: I637e99ae08a4db5b273c06318e6db523ea8ec7c5
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions