summaryrefslogtreecommitdiff
path: root/init/interface_utils.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-08-27 14:25:10 -0700
committerYifan Hong <elsk@google.com>2019-09-05 15:14:34 -0700
commit27fb95dedfafeef20220294f0a814cec06e9db87 (patch)
tree72d625acb384a23eb9a2b17029b2632f30c59c1d /init/interface_utils.cpp
parentdccd6b33894c42a2b05afe04f16465f093920eac (diff)
libsnapshot: Refactor: add {Create,Map,Unmap}CowImage
Move operations on image manager in *Snapshot functions to their own functions for finer granularity in control. *Snapshot functions only changes snapshot state and snapshot devices, but not the supporting devices. Now, MapSnapshot can take a customized COW device path. We will have a more complicated stack for the COW device in upcomming CLs. Also, Change SnapshotManager::CreateSnapshot's signature to accept a SnapshotStatus struct that includes all sizes, so that cow_partition_size and cow_file_size can also be written to the snapshot status file. Test: libsnapshot_test Change-Id: I388ecd4bcfbfcc3f379ecb6993615234f4fbcb4e
Diffstat (limited to 'init/interface_utils.cpp')
0 files changed, 0 insertions, 0 deletions