summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2020-11-09 20:40:06 -0800
committerDavid Anderson <dvander@google.com>2020-11-11 15:51:15 -0800
commitacd6d042922733ad0a703024ee78761f62598fb5 (patch)
treec096edb4ee6223ab6539a9d6348356a8b6f39d27 /trusty/coverage/coverage.cpp
parent4fa7551c6335f5b38b3c15e4c77fd6d37a79ba29 (diff)
libsnapshot: Refactor COW reading/writing of footers.
This simplifies the footer and label resume system for COW files. Previously, a footer could be missing, and we'd try to recover the file. Any ops we could recover were handed off to the CowWriter, which then searched up to the correct resume label. In the new model, a reader is opened with an optional label (resume mode), or without a label. When resuming to a label, a footer is optional. The read is terminated by EOF, discovery of the requested label, or the presence of a footer. However the requested label must be found, and parsing fails if it is not found. When opening a COW without a label, the footer must be present, as this signals the file was successfully flushed. Parsing fails if no footer is found. Bug: N/A Test: cow_api_test full OTA with VABC Change-Id: Ie79ab5259f532dd16c72f0e42da7568c5c5c4623
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions