From 1c40f6916be0b9469d4189c5e78c30af0bbd2a57 Mon Sep 17 00:00:00 2001 From: Satoru Takeuchi Date: Mon, 14 Mar 2016 09:27:22 +0900 Subject: 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 Check device to see if it has all of its devices in cache for mounting # ======================================= Signed-off-by: Satoru Takeuchi Signed-off-by: David Sterba --- cmds-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds-device.c') diff --git a/cmds-device.c b/cmds-device.c index 7616c430..5c0040c4 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); -- cgit v1.2.3