Whamcloud - gitweb
LU-9343 utils: update the usage of hsm_remove 82/26882/6
authorHongchao Zhang <hongchao.zhang@intel.com>
Sat, 15 Apr 2017 21:36:19 +0000 (05:36 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 22 Nov 2017 03:55:00 +0000 (03:55 +0000)
Update the usage of hsm_remove in lfs to describe it more correctly.

Change-Id: I2934f0d7038f418dbad3a7e7365c7cd655ee28da
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: https://review.whamcloud.com/26882
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
lustre/utils/lfs.c

index 026e36e..53929b6 100644 (file)
@@ -352,12 +352,14 @@ command_t cmdlist[] = {
         "usage: hsm_release [--filelist FILELIST] [--data DATA] <file> ..."},
        {"hsm_remove", lfs_hsm_remove, 0,
         "Remove file copy from external storage.\n"
-        "usage: hsm_remove [--filelist FILELIST] [--data DATA]\n"
-        "                  [--mntpath MOUNTPATH] [--archive NUM] <file|FID> ...\n"
+        "usage: hsm_remove [--filelist FILELIST] [--data DATA] "
+        "[--archive NUM]\n"
+        "                  (FILE [FILE ...] | "
+        "--mntpath MOUNTPATH FID [FID ...])\n"
         "\n"
-        "Note: To remove files from the archive that have been deleted on\n"
-        "Lustre, set mntpath and optionally archive. In that case, all the\n"
-        "positional arguments and entries in the file list must be FIDs."
+        "Note: To remove an archived copy of a file already deleted from a "
+        "Lustre FS, the\n"
+        "--mntpath option and a list of FIDs must be specified"
        },
        {"hsm_cancel", lfs_hsm_cancel, 0,
         "Cancel requests related to specified files.\n"