superblock_checker.* -> superblock.*, remove metadata_disk_structures.* and rearrange namespaces a bit.

This commit is contained in:
Joe Thornber
2013-05-21 12:46:07 +01:00
parent 4e61578508
commit 553f73b826
14 changed files with 188 additions and 223 deletions

View File

@@ -29,6 +29,12 @@ using namespace std;
using namespace thin_provisioning;
namespace {
enum error_state {
NO_ERRORS,
NON_FATAL, // eg, lost blocks
FATAL // needs fixing before pool can be activated
};
int check(string const &path, bool quiet) {
try {
optional<error_set::ptr> maybe_errors = metadata_check(path);