Whamcloud - gitweb
LU-5409 obd: add CFS_FAULT_CHECK() 63/11263/3
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 28 Jul 2014 23:30:54 +0000 (18:30 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 6 Aug 2014 20:02:59 +0000 (20:02 +0000)
commitf1a411bc79f8acc61bc1a18e42558513e44a2da6
tree8dbe8c3add0f29c744905793206bb4823304eb52
parentde0b4231c2b57d1517ea19de5cb224aa275cbdd8
LU-5409 obd: add CFS_FAULT_CHECK()

Add the macro CFS_FAULT_CHECK() which behaves like CFS_FAIL_CHECK()
except that any site may be matched by setting CFS_FAULT (0x02000000)
in cfs_fail_loc. Add cfs_fail_err for use as a return value with
CFS_FAULT_CHECK(). Add fault injection points to the DT object
operation wrappers using CFS_FAULT_CHECK().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I9841dbe0c62a13107c62382c8d7a73af207b1ef4
Reviewed-on: http://review.whamcloud.com/11263
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Robert Read <robert.read@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_fail.h
libcfs/libcfs/fail.c
libcfs/libcfs/linux/linux-proc.c
lustre/include/dt_object.h
lustre/include/obd_support.h