summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKusanagi Kouichi <slash@ac.auone-net.jp>2014-04-08 22:38:02 +0900
committerDavid Sterba <dsterba@suse.cz>2014-04-11 19:40:18 +0200
commitb53b11a8b4fad541c6f95df836fde7cc14ce7a0f (patch)
treefc72804d9194336d24f69395794e933669aa0083
parent779387ba2aeb5efdf9bbe54bd43191c11fbe2147 (diff)
btrfs-progs: Make property work with -t option
# btrfs prop list -t f . btrfs property list: too many arguments ... # btrfs prop get -t f . label btrfs property get: too many arguments ... # btrfs prop set -t f . label abc btrfs property set: too many arguments ... Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--cmds-property.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds-property.c b/cmds-property.c
index df53f918..8b4869fd 100644
--- a/cmds-property.c
+++ b/cmds-property.c
@@ -392,7 +392,7 @@ static int cmd_get(int argc, char **argv)
char *name = NULL;
int types = 0;
- if (check_argc_min(argc, 2) || check_argc_max(argc, 4))
+ if (check_argc_min(argc, 2) || check_argc_max(argc, 5))
usage(cmd_get_usage);
parse_args(argc, argv, cmd_get_usage, &types, &object, &name, NULL);
@@ -417,7 +417,7 @@ static int cmd_set(int argc, char **argv)
char *value;
int types = 0;
- if (check_argc_min(argc, 4) || check_argc_max(argc, 5))
+ if (check_argc_min(argc, 4) || check_argc_max(argc, 6))
usage(cmd_set_usage);
parse_args(argc, argv, cmd_set_usage, &types, &object, &name, &value);
@@ -437,7 +437,7 @@ static int cmd_list(int argc, char **argv)
char *object = NULL;
int types = 0;
- if (check_argc_min(argc, 2) || check_argc_max(argc, 3))
+ if (check_argc_min(argc, 2) || check_argc_max(argc, 4))
usage(cmd_list_usage);
parse_args(argc, argv, cmd_list_usage, &types, &object, NULL, NULL);