X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cmds-qgroup.c;h=93206900693de5a43472f6c6c6ff6f63b6d3230c;hb=7cdd58b2e92863f055c70ef7134d3a70760473c7;hp=2499a280e16263921d29768cd120fdc5a9c646ef;hpb=ec7251486ddf509ee1c73a75e6468d8a36f9a049;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/cmds-qgroup.c b/cmds-qgroup.c index 2499a28..9320690 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -427,6 +427,7 @@ static int cmd_qgroup_limit(int argc, char **argv) int compressed = 0; int exclusive = 0; DIR *dirstream = NULL; + enum btrfs_util_error err; while (1) { int c = getopt(argc, argv, "ce"); @@ -467,13 +468,9 @@ static int cmd_qgroup_limit(int argc, char **argv) if (argc - optind == 2) { args.qgroupid = 0; path = argv[optind + 1]; - ret = test_issubvolume(path); - if (ret < 0) { - error("cannot access '%s': %s", path, strerror(-ret)); - return 1; - } - if (!ret) { - error("'%s' is not a subvolume", path); + err = btrfs_util_is_subvolume(path); + if (err) { + error_btrfs_util(err); return 1; } /*