diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
commit | 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch) | |
tree | e5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/test/cli/rbd/too-many-args.t | |
parent | Initial commit. (diff) | |
download | ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip |
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/cli/rbd/too-many-args.t')
-rw-r--r-- | src/test/cli/rbd/too-many-args.t | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/cli/rbd/too-many-args.t b/src/test/cli/rbd/too-many-args.t new file mode 100644 index 00000000..cf075fb3 --- /dev/null +++ b/src/test/cli/rbd/too-many-args.t @@ -0,0 +1,33 @@ +A command taking no args: + + $ rbd device list junk + rbd: too many arguments + [1] + +A command taking one arg: + + $ rbd info img1 junk + rbd: too many arguments + [1] + +A command taking two args: + + $ rbd copy img1 img2 junk + rbd: too many arguments + [1] + +A command taking three args: + + $ rbd lock remove img1 lock1 locker1 junk + rbd: too many arguments + [1] + +A command taking unlimited args: + + $ rbd feature enable img1 layering striping exclusive-lock object-map fast-diff deep-flatten journaling junk + rbd: the argument for option is invalid + [1] + + $ rbd feature disable img1 layering striping exclusive-lock object-map fast-diff deep-flatten journaling junk + rbd: the argument for option is invalid + [1] |