Add the '--mirror-count|-N' option to the usage message for
"lfs getstripe" and its man page.
Fixes:
818340364d51 ("LU-11124 utils: add 'lfs getstripe -N' option")
Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I89ffb2661a48336c37b8bdd784e5f9e942cbd798
Reviewed-on: https://review.whamcloud.com/40545
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
[\fB--raw\fR|\fB-R\fR]
[\fB--stripe-count\fR|\fB-c\fR]
[\fB--stripe-index\fR|\fB-i\fR]
[\fB--raw\fR|\fB-R\fR]
[\fB--stripe-count\fR|\fB-c\fR]
[\fB--stripe-index\fR|\fB-i\fR]
- [\fB--stripe-size\fR|\fB-S\fR]
+ [\fB--stripe-size\fR|\fB-S\fR] [\fB--mirror-count\fR|\fB-N\fR]
[[\fB!\fR] \fB--mirror-index\fR=[\fB+-\fR]\fI<index>\fR | [\fB!\fR] \fB--mirror-id\fR=[\fB+-\fR]\fI<id>\fR]
[\fB--verbose\fR|\fB-v\fR]
[\fB--yaml\fR|\fB-y\fR]
[[\fB!\fR] \fB--mirror-index\fR=[\fB+-\fR]\fI<index>\fR | [\fB!\fR] \fB--mirror-id\fR=[\fB+-\fR]\fI<id>\fR]
[\fB--verbose\fR|\fB-v\fR]
[\fB--yaml\fR|\fB-y\fR]
+.BR --directory | -d
+Get striping information for only the specified directory, like
+.RB ' "ls -d" '.
+.TP
+.BR --fid | -F
+Show only the 128-bit unique Lustre File Identifier (FID).
+.TP
+.B --generation | -g
+Print only the layout generation number.
+.TP
+.BR --layout
+Show only the file layout, which is one of:
+.RS 1.2i
+.TP
+.B raid0
+Traditional Lustre RAID-0 striping format.
+.TP
+.B released
+HSM-archived files that are not resident in the filesystem.
+.TP
+.B mdt
+Files that have the first data component on an MDT.
+.RE
+.TP
+.BR --mdt | --mdt-index | -m
+Show the MDT index on which the file or directory inode is located.
+.TP
+.BR --mirror-count | -N
+Print the number of mirrors on the file.
+.TP
.BR --mirror-index = [\fB+-\fR]\fR<\fIindex\fR>
Print only the components of \fI<index>\fR-th mirror, based on the order
.BR --mirror-index = [\fB+-\fR]\fR<\fIindex\fR>
Print only the components of \fI<index>\fR-th mirror, based on the order
-that the mirror components are stored in the file layout, The \fIindex\fR
+that the mirror components are stored in the file layout. The \fIindex\fR
starts at 1. If
.BI + index
or
.BI - index
starts at 1. If
.BI + index
or
.BI - index
-is used, print components of mirror(s) respectively a later or earlier
-\fIindex\fR-th mirror.
+is used, print components of mirror(s) respectively later or earlier than
+the \fIindex\fR-th mirror.
.RE
.TP
.BR --mirror-id = [\fB+-\fR]\fR<\fIid\fR>
.RE
.TP
.BR --mirror-id = [\fB+-\fR]\fR<\fIid\fR>
-Print only the component s of the mirror with ID of \fIid\fR. The mirror IDs
-are assigned to new mirrors as they are created, but may not be sequential if
-some mirrors are removed. If
+Print only the components of the mirror with ID of \fIid\fR. The mirror IDs
+are assigned to new mirrors as they are created, but may not be sequential
+if some mirrors are removed. If
If neither is used, it means 'equal to \fIid\fR'.
.RE
.TP
If neither is used, it means 'equal to \fIid\fR'.
.RE
.TP
-.BR --directory | -d
-Get striping information for only the specified directory, like
-.RB ' "ls -d" '.
-.TP
-.BR --fid | -F
-Show only the 128-bit unique Lustre File Identifier (FID).
-.TP
-.B --generation | -g
-Print only the layout generation number.
-.TP
-.BR --layout
-Show only the file layout, which is one of:
-.RS 1.2i
-.TP
-.B raid0
-Traditional Lustre RAID-0 striping format.
-.TP
-.B released
-HSM-archived files that are not resident in the filesystem.
-.TP
-.B mdt
-Files that have the first data component on an MDT.
-.RE
-.TP
-.BR --mdt | --mdt-index | -m
-Show the MDT index on which the file or directory inode is located.
-.TP
.BR --ost | -O
Print the starting OST index for the file layout.
.TP
.BR --ost | -O
Print the starting OST index for the file layout.
.TP
" [--stripe-size|-S <stripe_size>]\n" \
" [--extension-size|--ext-size|-z]\n" \
" [--layout|-L <pattern>]\n" \
" [--stripe-size|-S <stripe_size>]\n" \
" [--extension-size|--ext-size|-z]\n" \
" [--layout|-L <pattern>]\n" \
- " [--mirror_count|-N[mirror_count]]\n" \
+ " [--mirror-count|-N[mirror_count]]\n" \
" [--ost|-o <ost_indices>]\n" \
" [--pool|-p <pool_name>]\n" \
" [--yaml|-y <yaml_template_file>]\n" \
" [--ost|-o <ost_indices>]\n" \
" [--pool|-p <pool_name>]\n" \
" [--yaml|-y <yaml_template_file>]\n" \
" [--component-start[=[+-]comp_start]]\n"
" [--component-end[=[+-]comp_end]|-E[[+-]comp_end]]\n"
" [[!] --mirror-index=[+-]<index> |\n"
" [--component-start[=[+-]comp_start]]\n"
" [--component-end[=[+-]comp_end]|-E[[+-]comp_end]]\n"
" [[!] --mirror-index=[+-]<index> |\n"
- " [!] --mirror-id=[+-]<id>]\n"
+ " [!] --mirror-id=[+-]<id>] [--mirror-count|-N]\n"
" <directory|filename> ..."},
{"setdirstripe", lfs_setdirstripe, 0,
"Create striped directory on specified MDT, same as mkdir.\n"
" <directory|filename> ..."},
{"setdirstripe", lfs_setdirstripe, 0,
"Create striped directory on specified MDT, same as mkdir.\n"