Whamcloud - gitweb
LU-9710 utils: adjust barrier_stat input/output 19/28319/2
authorFan Yong <fan.yong@intel.com>
Wed, 19 Jul 2017 05:58:06 +0000 (13:58 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Mon, 7 Aug 2017 18:51:33 +0000 (18:51 +0000)
commit3aa34ed841df89f599232f0affcaa6430f4121ed
treedd2bc2f2a4c7a14362af4f79b8aa105f87c1c12a
parent548787df0a7e577b38d9387430733ff4bcb0e2c2
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.

Lustre-change: https://review.whamcloud.com/27810
Lustre-commit: 3f198baf4fe343b679ce14ee11069126f4be3e72

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: If39f95ef984be3ab709b1366fdefe8eedb4b2453
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/28319
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@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