Whamcloud - gitweb
LU-8998 tools: parse optional argument properly 91/26491/13
authorNiu Yawei <yawei.niu@intel.com>
Wed, 5 Apr 2017 07:54:15 +0000 (03:54 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 29 May 2017 17:29:15 +0000 (17:29 +0000)
commitcbeffd6a981b8c6a79cd83a6b063bf55d4e9bb2b
tree2e11b6a473abf39207c39d79eac2efb80debfc7f
parentc7d61cf7497944fde258697f13b34e452bf5d4a1
LU-8998 tools: parse optional argument properly

Use standard way '-S[opt_arg]' or '--long[=opt_arg]' to specify
optional arguments for 'lfs getstripe', the former way of parsing
optional argument is flawed.

Reverted use of '+' (at least), '-' (at most) for --component-start
and --component-end options.

Support "EOF/eof/-1" for the --component-end of 'lfs getstripe' &
'lfs find'.

Updated man pages and test scripts accordingly.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I51980e9186675e3668a4b40a1edc5da6d2a1801c
Reviewed-on: https://review.whamcloud.com/26491
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/doc/lfs.1
lustre/tests/sanity-lfsck.sh
lustre/tests/sanity-pfl.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c