]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Make <poolname> in "ceph osd tier --help" clearer. 1982/head
authorAccela Zhao <accelazh@gmail.com>
Wed, 18 Jun 2014 09:17:03 +0000 (17:17 +0800)
committerAccela Zhao <accelazh@gmail.com>
Wed, 18 Jun 2014 11:28:41 +0000 (19:28 +0800)
The ceph osd tier --help info on the left always says <poolname>.
It is unclear which one to put <tierpool> on the right.

$ceph osd tier --help
osd tier add <poolname> <poolname> {--   add the tier <tierpool> to base pool
force-nonempty}                          <pool>
osd tier add-cache <poolname>            add a cache <tierpool> of size <size>
<poolname> <int[0-]>                     to existing pool <pool>
...

This patch modifies description on the right to tell which <poolname>:

osd tier add <poolname> <poolname> {--   add the tier <tierpool> (the second
 force-nonempty}                          one) to base pool <pool> (the first
                                           one)
...

Fix: http://tracker.ceph.com/issues/8256

Signed-off-by: Yilong Zhao <accelazh@gmail.com>
src/mon/MonCommands.h

index 36f1e9fc7c4ecb24a35faaab7dc2187997c7f1bb..eb63303b1689accb6fac0150177ae639e8aab851 100644 (file)
@@ -585,11 +585,13 @@ COMMAND("osd tier add " \
        "name=pool,type=CephPoolname " \
        "name=tierpool,type=CephPoolname " \
        "name=force_nonempty,type=CephChoices,strings=--force-nonempty,req=false",
-       "add the tier <tierpool> to base pool <pool>", "osd", "rw", "cli,rest")
+       "add the tier <tierpool> (the second one) to base pool <pool> (the first one)", \
+       "osd", "rw", "cli,rest")
 COMMAND("osd tier remove " \
        "name=pool,type=CephPoolname " \
        "name=tierpool,type=CephPoolname",
-       "remove the tier <tierpool> from base pool <pool>", "osd", "rw", "cli,rest")
+       "remove the tier <tierpool> (the second one) from base pool <pool> (the first one)", \
+       "osd", "rw", "cli,rest")
 COMMAND("osd tier cache-mode " \
        "name=pool,type=CephPoolname " \
        "name=mode,type=CephChoices,strings=none|writeback|forward|readonly", \
@@ -606,7 +608,7 @@ COMMAND("osd tier add-cache " \
        "name=pool,type=CephPoolname " \
        "name=tierpool,type=CephPoolname " \
        "name=size,type=CephInt,range=0", \
-       "add a cache <tierpool> of size <size> to existing pool <pool>", \
+       "add a cache <tierpool> (the second one) of size <size> to existing pool <pool> (the first one)", \
        "osd", "rw", "cli,rest")
 
 /*