aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-device.c
diff options
context:
space:
mode:
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>2016-03-14 09:27:22 +0900
committerDavid Sterba <dsterba@suse.com>2016-05-02 14:42:09 +0200
commit1c40f6916be0b9469d4189c5e78c30af0bbd2a57 (patch)
treea2e1775942da389a8a23c75c7f6cedee2865c902 /cmds-device.c
parenteba0d8925c6811d35eca95cd9f83b15fff6f690d (diff)
downloadbtrfs-progs-1c40f6916be0b9469d4189c5e78c30af0bbd2a57.tar.gz
btrfs-progs-1c40f6916be0b9469d4189c5e78c30af0bbd2a57.tar.xz
btrfs-progs-1c40f6916be0b9469d4189c5e78c30af0bbd2a57.zip
btrfs-progs: "device ready" accepts just one device
* actual result ======================================= # ./btrfs device ready /dev/sdb foo # ======================================= * expecting result ======================================= # ./btrfs device ready /dev/sdb foo btrfs device ready: too many arguments usage: btrfs device ready <device> Check device to see if it has all of its devices in cache for mounting # ======================================= Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-device.c')
-rw-r--r--cmds-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 7616c43..5c0040c 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -333,7 +333,7 @@ static int cmd_device_ready(int argc, char **argv)
clean_args_no_options(argc, argv, cmd_device_ready_usage);
- if (check_argc_min(argc - optind, 1))
+ if (check_argc_exact(argc - optind, 1))
usage(cmd_device_ready_usage);
fd = open("/dev/btrfs-control", O_RDWR);