Whamcloud - gitweb
LU-4020 hsm: allow copytool event monitoring with JSON 90/7790/15
authorMichael MacDonald <michael.macdonald@intel.com>
Wed, 26 Feb 2014 21:18:32 +0000 (16:18 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 5 Mar 2014 20:47:16 +0000 (20:47 +0000)
commit45c9ef1dfff207086665c764c7d500c00aa03c7f
treedc573d2483d1f33e680f7c5ac25b90390e8e7266
parenta641c6e39477729346f4a12f3c367c06dc9ead6f
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.

Signed-off-by: Michael MacDonald <michael.macdonald@intel.com>
Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I1fecfb8e60ef091c6d37d16dc1faf40be45c5ee2
Reviewed-on: http://review.whamcloud.com/7790
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@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]