Whamcloud - gitweb
LU-7747 lfs: fix help message for migrate 41/20541/4
authorDmitry Eremin <dmitry.eremin@intel.com>
Wed, 1 Jun 2016 12:37:42 +0000 (15:37 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:55:59 +0000 (03:55 +0000)
Combine two different help messages for migrate in one.

Test-Parameters: trivial

Change-Id: I2b44006dbd9114155cf7a1f65e68d3796f857ee3
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: http://review.whamcloud.com/20541
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/utils/lfs.c

index 14a84a9..90cbfa0 100644 (file)
@@ -364,19 +364,19 @@ command_t cmdlist[] = {
         "migrate a directory between MDTs.\n"
         "usage: migrate --mdt-index <mdt_idx> [--verbose|-v] "
         "<directory>\n"
         "migrate a directory between MDTs.\n"
         "usage: migrate --mdt-index <mdt_idx> [--verbose|-v] "
         "<directory>\n"
-        "\tmdt_idx:      index of the destination MDT\n"},
-       {"migrate", lfs_setstripe, 0,
+        "\tmdt_idx:      index of the destination MDT\n"
+        "\n"
         "migrate file objects from one OST "
         "layout\nto another (may be not safe with concurent writes).\n"
         "migrate file objects from one OST "
         "layout\nto another (may be not safe with concurent writes).\n"
-        "usage: migrate "
+        "usage: migrate  "
         "[--stripe-count|-c] <stripe_count>\n"
         "[--stripe-count|-c] <stripe_count>\n"
-        "[--stripe-index|-i] <start_ost_index>\n"
-        "[--stripe-size|-S] <stripe_size>\n"
-        "[--pool|-p] <pool_name>\n"
-        "[--ost-list|-o] <ost_indices>\n"
-        "[--block|-b]\n"
-        "[--non-block|-n]\n"
-        "<file|directory>\n"
+        "              [--stripe-index|-i] <start_ost_index>\n"
+        "              [--stripe-size|-S] <stripe_size>\n"
+        "              [--pool|-p] <pool_name>\n"
+        "              [--ost-list|-o] <ost_indices>\n"
+        "              [--block|-b]\n"
+        "              [--non-block|-n]\n"
+        "              <file|directory>\n"
         "\tstripe_count:     number of OSTs to stripe a file over\n"
         "\tstripe_ost_index: index of the first OST to stripe a file over\n"
         "\tstripe_size:      number of bytes to store before moving to the next OST\n"
         "\tstripe_count:     number of OSTs to stripe a file over\n"
         "\tstripe_ost_index: index of the first OST to stripe a file over\n"
         "\tstripe_size:      number of bytes to store before moving to the next OST\n"