diff options
Diffstat (limited to 'btrfs-debug-tree.c')
-rw-r--r-- | btrfs-debug-tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/btrfs-debug-tree.c b/btrfs-debug-tree.c index 9cdb35f9..0815fe1e 100644 --- a/btrfs-debug-tree.c +++ b/btrfs-debug-tree.c @@ -180,8 +180,9 @@ int main(int ac, char **av) print_usage(); ret = check_arg_type(av[optind]); - if (ret != BTRFS_ARG_BLKDEV) { - fprintf(stderr, "'%s' is not a block device\n", av[optind]); + if (ret != BTRFS_ARG_BLKDEV && ret != BTRFS_ARG_REG) { + fprintf(stderr, "'%s' is not a block device or regular file\n", + av[optind]); exit(1); } |