[thin_check] fix bugs in thin_check -m

This commit is contained in:
Joe Thornber
2020-06-12 13:41:47 +01:00
parent ace8b39a8a
commit 0b5afc6cb0
2 changed files with 6 additions and 3 deletions

View File

@@ -76,7 +76,8 @@ namespace {
return 1;
}
block_manager::ptr bm = open_bm(path);
block_manager::ptr bm = open_bm(path, block_manager::READ_ONLY,
!fs.check_opts.use_metadata_snap_);
output_options output_opts = !fs.quiet ? OUTPUT_NORMAL : OUTPUT_QUIET;
error_state err = check_metadata(bm, fs.check_opts, output_opts);
@@ -128,7 +129,7 @@ thin_check_cmd::run(int argc, char **argv)
int c;
flags fs;
char const shortopts[] = "qhV";
char const shortopts[] = "qhVm";
option const longopts[] = {
{ "quiet", no_argument, NULL, 'q'},
{ "help", no_argument, NULL, 'h'},