class ConsistencyManager
Defined at line 73 of file ../../src/storage/lib/ftl/test/ftl_workload_fuzzer.cc
Manage and verify consistency for a block device. Needs to call Verify() to update data on mount
if the volume was previously unmounted without a flush. If Verify() ever returns false, the rest
of the operations should not be trusted.
Public Methods
void ConsistencyManager (uint32_t num_pages, size_t page_length)
Defined at line 103 of file ../../src/storage/lib/ftl/test/ftl_workload_fuzzer.cc
void UpdatePages (uint32_t first_page, uint32_t num_pages, uint8_t * buffer)
Call before a write. Fills the buffer with what should be written out, storing similar info
locally.
Defined at line 108 of file ../../src/storage/lib/ftl/test/ftl_workload_fuzzer.cc
void FlushComplete ()
Call after successful flush. Confirms expected data range.
Defined at line 121 of file ../../src/storage/lib/ftl/test/ftl_workload_fuzzer.cc
void Verify (ftl::Volume * volume)
Call after mount. Checks the consistency of the volume against the stored data. If the stored
data is in a valid range, it will update the range to reflect the current values. If data is
invalid this method will ASSERT.
Defined at line 126 of file ../../src/storage/lib/ftl/test/ftl_workload_fuzzer.cc