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 cdeb2f3a (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>
Showing
- lustre/doc/lfs-getdirstripe.1 28 additions, 28 deletionslustre/doc/lfs-getdirstripe.1
- lustre/doc/lfs-setdirstripe.1 49 additions, 27 deletionslustre/doc/lfs-setdirstripe.1
- lustre/doc/lfs.1 1 addition, 1 deletionlustre/doc/lfs.1
- lustre/tests/conf-sanity.sh 2 additions, 2 deletionslustre/tests/conf-sanity.sh
- lustre/tests/lfsck-performance.sh 1 addition, 1 deletionlustre/tests/lfsck-performance.sh
- lustre/tests/sanity-hsm.sh 2 additions, 2 deletionslustre/tests/sanity-hsm.sh
- lustre/tests/sanity.sh 19 additions, 24 deletionslustre/tests/sanity.sh
- lustre/utils/lfs.c 117 additions, 149 deletionslustre/utils/lfs.c
Loading
Please register or sign in to comment