Whamcloud - gitweb
LU-9710 utils: adjust barrier_stat input/output 10/27810/5
authorFan Yong <fan.yong@intel.com>
Wed, 19 Jul 2017 05:58:06 +0000 (13:58 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 1 Aug 2017 05:34:38 +0000 (05:34 +0000)
commit3f198baf4fe343b679ce14ee11069126f4be3e72
treecedaee4bcafe24cef04874293b509ac83c8ad865
parent9e31c0dcfc351c76b22dcde05087857484859124
LU-9710 utils: adjust barrier_stat input/output

The command format will be:
lctl barrier_stat [--state|-s] [--timeout|-t] <fsname>

If no option is specified, or both "state" and "timeout"
options are specified, then the output format will be:
state: xxx
timeout: nnn seconds

Otherwise, only the value ('xxx' or 'nnn') corresponding
to the given option will be printed.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: If39f95ef984be3ab709b1366fdefe8eedb4b2453
Reviewed-on: https://review.whamcloud.com/27810
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
lustre/doc/lctl-barrier.8
lustre/tests/sanity.sh
lustre/utils/lctl.c
lustre/utils/lsnapshot.c
lustre/utils/obd.c
lustre/utils/obdctl.h