Whamcloud - gitweb
LU-2193 ldlm: print FID in lvbo_init(), lvbo_update
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 9 Nov 2012 09:47:47 +0000 (02:47 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Jun 2013 03:19:08 +0000 (23:19 -0400)
commit9372b519f1c85a542dbc0437bd964256d34ee8fd
treee6cc6c672aefc37218ad24eb5c58af08e33c68df
parent2457fa3b19506a9568fb6a2cbc94126896548ca6
LU-2193 ldlm: print FID in lvbo_init(), lvbo_update

Print the namespace and OBD device name, as well as the first two
lock resource fields (typically the FID) if there is an error with
loading the object from disk.  This will be more important with
FID-on-OST and also the MDS.  Using fid_extract_from_res_name() isn't
possible in the LDLM code, since the lock resource may not be a FID.

Make fid_extract_quota_resid() argument order and name consistent
with other fid_*_res() functions, with FID first and resource second.

Fix a bug in ofd_lvbo_init() where NULL lvb is accessed on error.

Print FID in ofd_lvbo_update() CDEBUG() and CERROR() messages.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I7f323f15a5bf4a12865a64b2cd2bb0ebe68c6e78
Reviewed-on: http://review.whamcloud.com/4501
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_fid.h
lustre/ldlm/ldlm_resource.c
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_lvb.c
lustre/mdt/mdt_reint.c
lustre/ofd/ofd_lvb.c
lustre/quota/qmt_lock.c
lustre/quota/qsd_request.c