Whamcloud - gitweb
LU-11124 utils: add "lfs getstripe -N" option
Add an "lfs getstripe -N" option to print the number of mirrors on a
file. The code for printing the mirror count was already in
liblustreapi.c, but there was no option to request only this value
to be printed.
Move the VERBOSE_* flags into an enum and change the various functions
and structures using these flags to use the enum. Rename a few of the
constants to be more specific, but add compatibility definitions.
Use "lfs getstripe -N" in sanity-flr and sanity-lfsck for mirror count
instead of parsing the mirror count from the verbose layout.
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iafd111c25e22d94153596f9bd4a16750548cab07
Reviewed-on: https://review.whamcloud.com/33280
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>