]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs: fix cephfs-journal-tool --help 15614/head
authorJohn Spray <john.spray@redhat.com>
Sun, 11 Jun 2017 12:22:20 +0000 (08:22 -0400)
committerJohn Spray <john.spray@redhat.com>
Thu, 15 Jun 2017 19:44:15 +0000 (15:44 -0400)
The --alternate-pool option was in the wrong place.

This format is not beautiful, but I think it's accurate
in terms of where the option should sit to get parsed
correctly?

Signed-off-by: John Spray <john.spray@redhat.com>
src/tools/cephfs/JournalTool.cc

index 0f3b15752501c70fb4a003d3b896b35cc2a6f172..bc748ae43a30d3ad4d438a009c6e585048e269a6 100644 (file)
@@ -49,22 +49,25 @@ void JournalTool::usage()
     << "      export <path>\n"
     << "      reset [--force]\n"
     << "  cephfs-journal-tool [options] header <get|set <field> <value>\n"
-    << "  cephfs-journal-tool [options] event <effect> <selector> <output>\n"
+    << "  cephfs-journal-tool [options] event <effect> <selector> <output> [special options]\n"
     << "    <selector>:\n"
     << "      --range=<start>..<end>\n"
     << "      --path=<substring>\n"
     << "      --inode=<integer>\n"
     << "      --type=<UPDATE|OPEN|SESSION...><\n"
     << "      --frag=<ino>.<frag> [--dname=<dentry string>]\n"
-    << "      --alternate-pool=pool-name\n"
     << "      --client=<session id integer>\n"
     << "    <effect>: [get|apply|recover_dentries|splice]\n"
     << "    <output>: [summary|list|binary|json] [--path <path>]\n"
     << "\n"
-    << "Options:\n"
+    << "General options:\n"
     << "  --rank=filesystem:mds-rank  Journal rank (required if multiple\n"
     << "                              file systems, default is rank 0 on\n"
-    << "                              the only filesystem otherwise.\n";
+    << "                              the only filesystem otherwise.\n"
+    << "\n"
+    << "Special options\n"
+    << "  --alternate-pool <name>     Alternative metadata pool to target\n"
+    << "                              when using recover_dentries.\n";
 
   generic_client_usage();
 }