[thin_repair] fix regression in thin_repair
When opening the corrupted metadata we don't need to touch the space maps. This used to be achieved by pretending we were opening a metadata snap at block 0 (superblock location). But got changed in the recent rationalisation of the metadata constructors. This patch introduces a bool to the metadata OPEN constructor that says whether the space maps are needed or not.
This commit is contained in:
@@ -74,7 +74,7 @@ namespace thin_provisioning {
|
||||
// ii) Read the metadata snap as given in the superblock
|
||||
// iii) Read the metadata snap given on command line, checking it matches superblock.
|
||||
//
|
||||
metadata(block_manager<>::ptr bm); // (i)
|
||||
metadata(block_manager<>::ptr bm, bool read_space_maps = true); // (i)
|
||||
metadata(block_manager<>::ptr,
|
||||
boost::optional<block_address> metadata_snap); // (ii) and (iii)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user