summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.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
commitea79136740fe44d9c97e1a7fcc80a5e3ca388d8b (patch)
treec096edb4ee6223ab6539a9d6348356a8b6f39d27 /trusty/coverage/coverage_test.cpp
parentce69f2985bcb34c9db8b96bc9128ad28540d28de (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_test.cpp')
0 files changed, 0 insertions, 0 deletions