From ec92251a3a8ef01b5ac5aff22055ea66e4869ae3 Mon Sep 17 00:00:00 2001 From: yury Date: Fri, 13 Oct 2006 19:10:13 +0000 Subject: [PATCH] - added debug to fld client fucntions to catch wrong activities. --- lustre/fid/fid_request.c | 3 +-- lustre/fld/fld_request.c | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/lustre/fid/fid_request.c b/lustre/fid/fid_request.c index 0884809..2e62ea5 100644 --- a/lustre/fid/fid_request.c +++ b/lustre/fid/fid_request.c @@ -291,8 +291,7 @@ int seq_client_alloc_fid(struct lu_client_seq *seq, struct lu_fid *fid) *fid = seq->lcs_fid; LASSERT(fid_is_sane(fid)); - CDEBUG(D_INFO, "%s: Allocated FID "DFID"\n", - seq->lcs_name, PFID(fid)); + CDEBUG(D_INFO, "%s: Allocated FID "DFID"\n", seq->lcs_name, PFID(fid)); EXIT; out: diff --git a/lustre/fld/fld_request.c b/lustre/fld/fld_request.c index 5b19eb1..c9155b8 100644 --- a/lustre/fld/fld_request.c +++ b/lustre/fld/fld_request.c @@ -446,6 +446,10 @@ int fld_client_create(struct lu_client_fld *fld, target = fld_client_get_target(fld, seq); LASSERT(target != NULL); + CDEBUG(D_INFO, "%s: Create fld entry (seq: "LPX64"; mds: " + LPX64") on target %s (idx "LPU64")\n", fld->lcf_name, + seq, mds, fld_target_name(target), target->ft_idx); + #ifdef __KERNEL__ if (target->ft_srv != NULL) { LASSERT(env != NULL); @@ -488,6 +492,10 @@ int fld_client_delete(struct lu_client_fld *fld, seqno_t seq, target = fld_client_get_target(fld, seq); LASSERT(target != NULL); + CDEBUG(D_INFO, "%s: Delete fld entry (seq: "LPX64") on " + "target %s (idx "LPU64")\n", fld->lcf_name, seq, + fld_target_name(target), target->ft_idx); + #ifdef __KERNEL__ if (target->ft_srv != NULL) { LASSERT(env != NULL); @@ -514,15 +522,19 @@ int fld_client_lookup(struct lu_client_fld *fld, int rc; ENTRY; - /* lookup it in the cache */ + /* Lookup it in the cache */ rc = fld_cache_lookup(fld->lcf_cache, seq, mds); if (rc == 0) RETURN(0); - /* can not find it in the cache */ + /* Can not find it in the cache */ target = fld_client_get_target(fld, seq); LASSERT(target != NULL); + CDEBUG(D_INFO, "%s: Lookup fld entry (seq: "LPX64") on " + "target %s (idx "LPU64")\n", fld->lcf_name, seq, + fld_target_name(target), target->ft_idx); + #ifdef __KERNEL__ if (target->ft_srv != NULL) { LASSERT(env != NULL); -- 1.8.3.1