Whamcloud - gitweb
LU-4020 hsm: allow copytool event monitoring with JSON 12/9512/3
authorMichael MacDonald <michael.macdonald@intel.com>
Wed, 26 Feb 2014 21:18:32 +0000 (16:18 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Mar 2014 16:18:32 +0000 (16:18 +0000)
commit7730e55178faff993f64b6233ec43f179179e461
treeee57adc4a450cd5e145c035a696e497266b8f36b
parent103f0322b9b419d0fe8c29b1adad9598b23fedba
LU-4020 hsm: allow copytool event monitoring with JSON

Adds hooks into various llapi_hsm_* functions to emit JSON-formatted
event messages for consumption by a monitoring agent. The copytool
needs to be supplied with an optional --event-fifo argument to
enable this feature.

Incorporates the following work done by Bruno Faccini:
* Put all JSON routines in a separate file/lib to allow for
  LGPL licensing.
* Major code cleanup to follow best practices and address review
  concerns.

Lustre-commit: 45c9ef1dfff207086665c764c7d500c00aa03c7f
Lustre-change: http://review.whamcloud.com/7790

Signed-off-by: Michael MacDonald <michael.macdonald@intel.com>
Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Change-Id: Icfad0f2093f24fcfec22408d9819d438c6a5e7f1
Reviewed-on: http://review.whamcloud.com/9512
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/lustre/lustre_user.h
lustre/include/lustre/lustreapi.h
lustre/tests/sanity-hsm.sh
lustre/utils/Makefile.am
lustre/utils/lhsmtool_posix.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_hsm.c
lustre/utils/liblustreapi_json.c [new file with mode: 0644]