Skip to content

Commit

Permalink
[thin_rmap] Fail if no regions are supplied.
Browse files Browse the repository at this point in the history
  • Loading branch information
jthornber committed Sep 19, 2017
1 parent f7d7933 commit 3790f2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thin-provisioning/thin_rmap.cc
Expand Up @@ -180,6 +180,12 @@ thin_rmap_cmd::run(int argc, char **argv)
exit(1);
}

if (!regions.size()) {
cerr << "No regions provided." << endl;
usage(cerr);
exit(1);
}

return rmap(argv[optind], regions);
}

Expand Down

0 comments on commit 3790f2e

Please sign in to comment.