Whamcloud - gitweb
LU-7501 utils: clean up lfs argument handling/docs 92/28592/15
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 17 Aug 2017 23:33:47 +0000 (17:33 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 6 Feb 2018 04:27:03 +0000 (04:27 +0000)
commit5fee5b700d1e683d165fc0ef0ae88c2a0ab83681
tree696e34c5d966fe55f7c681701e87506ca1687e35
parent942a9853f7b4c6fe22729468f1802ab782087e4e
LU-7501 utils: clean up lfs argument handling/docs

Change "mdt-hash" option in lfs_setstripe() and lfs_setdirstripe
to use C99 formatting as used for other options.

Add comments for already-used options to lfs_find(), lfs_getstripe(),
and lfs_setstripe() to avoid conflicts in the future.

A few initializers can fit onto the same line with minor formatting
changes, better to be more compact than a slave to exact formatting.

Remove options that are obsoleted by LUSTRE_VERSION_CODE after 2.10.
Remove over-zealous deprecation of "lfs mkdir -c".

Sort options to be in mostly alphabetical order, unless the long
option parsing would return a deprecated short option.

Add deprecation warnings for short/long options that were deprecated
already in commit cdeb2f3a56e8 (http://review.whamcloud.com/22581).

Fix up lfs-setdirstripe.1 and lfs-getdirstripe.1 man pages to list
preferred option names.  Also, lfs-getdirstripe.1 listed some options
that never existed, and others that were named incorrectly.

Move test scripts over to use preferred command and option names.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I74a59ce372115ae0906d0feb37c539a450bed6bd
Reviewed-on: https://review.whamcloud.com/28592
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/doc/lfs-getdirstripe.1
lustre/doc/lfs-setdirstripe.1
lustre/doc/lfs.1
lustre/tests/conf-sanity.sh
lustre/tests/lfsck-performance.sh
lustre/tests/sanity-hsm.sh
lustre/tests/sanity.sh
lustre/utils/lfs.c