From 6ef815a0b9edc8239481f45ccd162e79b3f99cfb Mon Sep 17 00:00:00 2001 From: Vitaly Fertman Date: Fri, 13 Mar 2020 17:03:32 +0300 Subject: [PATCH] LU-13366 doc: add SEL options to util's man pages a couple of documents missed the SEL info: - lfs man page - lfs setstripe help message - lfs find help message Test-Parameters: trivial Signed-off-by: Vitaly Fertman Change-Id: Ifd4e55877309a29cafdd05d007ace6660d0f775b Reviewed-by: Alexey Lyashkov Reviewed-by: Alexander Boyko Tested-by: Elena Gryaznova Reviewed-on: https://es-gerrit.dev.cray.com/156672 HPE-bug-id: LUS-8149 Reviewed-on: https://review.whamcloud.com/37962 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo Reviewed-by: Alexander Boyko Reviewed-by: Oleg Drokin --- lustre/doc/lfs.1 | 5 ++++- lustre/utils/lfs.c | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lustre/doc/lfs.1 b/lustre/doc/lfs.1 index 6d8d54f..648e1f7 100644 --- a/lustre/doc/lfs.1 +++ b/lustre/doc/lfs.1 @@ -39,6 +39,7 @@ lfs \- client utility for Lustre-specific file layout and other attributes [[\fB!\fR] \fB--size|\fB-s\fR [\fB-+\fR]\fIn\fR[\fBKMGTPE\fR]] [[\fB!\fR] \fB--stripe-count\fR|\fB-c\fR [\fB+-\fR]\fIn\fR] [[\fB!\fR] \fB--stripe-index\fR|\fB-i\fR \fIn\fR,...] + [[\fB!\fR] \fB--extension-size\fR|\fB-ext-size\fR|\fB-z\fR [\fB+-\fR]\fIn\fR[\fBKMG\fR]] [[\fB!\fR] \fB--stripe-size\fR|\fB-S\fR [\fB+-\fR]\fIn\fR[\fBKMG\fR]] [[\fB!\fR] \fB--type\fR|\fB-t\fR {\fBbcdflps\fR}] [[\fB!\fR] \fB--uid\fR|\fB-u\fR|\fB--user\fR|\fB-U @@ -67,7 +68,8 @@ lfs \- client utility for Lustre-specific file layout and other attributes [\fB--stripe-count\fR|\fB-c\fR] [\fB--stripe-index\fR|\fB-i\fR] [\fB--stripe-size\fR|\fB-S\fR] -[\fB--verbose\fR|\fB-v\fR] +[\fB--extension-size\fR|\fB--ext-size\fR|\fB-z\fR] + [\fB--verbose\fR|\fB-v\fR] [\fB--yaml\fR|\fB-y\fR] <\fIdirname\fR|\fIfilename\fR> ... .br @@ -103,6 +105,7 @@ lfs \- client utility for Lustre-specific file layout and other attributes .br .B lfs setstripe \fR[\fB--stripe-size\fR|\fB-S <\fIsize\fR>] [\fB--stripe-count\fR|-c <\fIcount\fR>] [\fB--stripe-index\fR|\fB-i <\fIstart_ost_index\fR>] [\fB--pool\fR|\fB-p \fR<\fIpoolname\fR>] + [\fB--extension-size\fR|\fB--ext-size\fR|\fB-z <\fIext_size\fR>] [\fB--ost-list\fR|\fB-o <\fIost_indices\fR>] <\fIdirectory\fR|\fIfilename\fR> .br .B lfs setstripe -d \fR<\fIdir\fR> diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index b186841..4f6edf1 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -185,6 +185,7 @@ static inline int lfs_mirror_delete(int argc, char **argv) " [--overstripe-count|-C ]\n" \ " [--stripe-index|-i ]\n" \ " [--stripe-size|-S ]\n" \ + " [--extension-size|--ext-size|-z]\n" \ " [--layout|-L ]\n" \ " [--mirror_count|-N[mirror_count]]\n" \ " [--ost|-o ]\n" \ @@ -201,6 +202,10 @@ static inline int lfs_mirror_delete(int argc, char **argv) "\tstripe_size: Number of bytes on each OST (0=fs default)\n" \ "\t Can be specified with K, M or G (for KB, MB, GB\n" \ "\t respectively)\n" \ + "\textension_size:\n" \ + "\t Number of bytes the previous component is extended\n" \ + "\t each time. Can be specified with K, M, G (for KB,\n" \ + "\t MB, GB respectively)\n" \ "\tpool_name: Name of OST pool to use (default none)\n" \ "\tlayout: stripe pattern type: raid0, mdt (default raid0)\n"\ "\tost_indices: List of OST indices, can be repeated multiple times\n"\ @@ -468,6 +473,7 @@ command_t cmdlist[] = { " [[!] --stripe-count|-c [+-]]\n" " [[!] --stripe-index|-i ]\n" " [[!] --stripe-size|-S [+-]N[kMGT]] [[!] --type|-t ]\n" + " [[!] --extension-size|--ext-size|-z [+-]N[kMGT]]\n" " [[!] --gid|-g|--group|-G |]\n" " [[!] --uid|-u|--user|-U |] [[!] --pool ]\n" " [[!] --projid ]\n" -- 1.8.3.1