diff options
Diffstat (limited to 'cmds-check.c')
-rw-r--r-- | cmds-check.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c index d39e7972..4eb2ef9b 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -3860,8 +3860,10 @@ int cmd_check(int argc, char **argv) } info = open_ctree_fs_info(argv[optind], bytenr, rw, 1); - if (info == NULL) - return 1; + if (!info) { + fprintf(stderr, "Couldn't open file system\n"); + return -EIO; + } uuid_unparse(info->super_copy->fsid, uuidbuf); printf("Checking filesystem on %s\nUUID: %s\n", argv[optind], uuidbuf); |