diff options
author | Alessio Balsini <balsini@google.com> | 2019-10-14 20:57:02 +0100 |
---|---|---|
committer | Alessio Balsini <balsini@google.com> | 2019-10-15 13:06:48 +0100 |
commit | a6e3d497aee1b22b69456c5721cbad7944464c5e (patch) | |
tree | 1c5403a247c057ab9a80d1806280cf08445e42d4 /trusty/coverage/coverage_test.cpp | |
parent | e34d2390230ca54f7ca3932bab9a40c4df077069 (diff) |
Utility class for COW size calculation
The Linux kernel's dm-snapshot relies on a COW device to keep trace of
all the modified sectors.
The COW device has a precise structure, which allows to compute its
space requirement in advance, as a function of:
- sector size;
- chunk size;
- list of modifications applied to the snapshot device.
Create a class that implements the COW device space occupancy given this
information.
Bug: 140835698
Test: libsnapshot_test
Change-Id: I50e3815741ee689d14fc3611532ff9d3b3e0e879
Signed-off-by: Alessio Balsini <balsini@google.com>
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions