summaryrefslogtreecommitdiff
path: root/cmds-inspect-tree-stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-inspect-tree-stats.c')
-rw-r--r--cmds-inspect-tree-stats.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/cmds-inspect-tree-stats.c b/cmds-inspect-tree-stats.c
index c35f588..cd7ef3b 100644
--- a/cmds-inspect-tree-stats.c
+++ b/cmds-inspect-tree-stats.c
@@ -457,18 +457,14 @@ int cmd_inspect_tree_stats(int argc, char **argv)
usage(cmd_inspect_tree_stats_usage);
}
- /*
- if ((ret = check_mounted(argv[optind])) < 0) {
- fprintf(stderr, "Could not check mount status: %d\n", ret);
- if (ret == -EACCES)
- fprintf(stderr, "Maybe you need to run as root?\n");
- return ret;
+ ret = check_mounted(argv[optind]);
+ if (ret < 0) {
+ warning("unable to check mount status of: %s",
+ strerror(-ret));
} else if (ret) {
- fprintf(stderr, "%s is currently mounted. Aborting.\n",
- argv[optind]);
- return -EBUSY;
+ warning("%s already mounted, results may be inaccurate",
+ argv[optind]);
}
- */
root = open_ctree(argv[optind], 0, 0);
if (!root) {