summaryrefslogtreecommitdiffstats
path: root/src/test/cli/rbd/too-many-args.t
blob: cf075fb30aa18bf071456866a98b8b1dcc923388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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]