From f77dfb5b0f80dbe8551aad089ed022c5dc2975ef Mon Sep 17 00:00:00 2001 From: tappro Date: Sun, 19 Nov 2006 13:46:14 +0000 Subject: [PATCH] add 'exist' info in lu_object_header_print() --- lustre/obdclass/lu_object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/lu_object.c b/lustre/obdclass/lu_object.c index 10ca014..6f94857 100644 --- a/lustre/obdclass/lu_object.c +++ b/lustre/obdclass/lu_object.c @@ -354,10 +354,11 @@ static void lu_object_header_print(const struct lu_env *env, void *cookie, lu_printer_t printer, const struct lu_object_header *hdr) { - (*printer)(env, cookie, "header@%p[%#lx, %d, "DFID"%s%s]", + (*printer)(env, cookie, "header@%p[%#lx, %d, "DFID"%s%s%s]", hdr, hdr->loh_flags, hdr->loh_ref, PFID(&hdr->loh_fid), hlist_unhashed(&hdr->loh_hash) ? "" : " hash", - list_empty(&hdr->loh_lru) ? "" : " lru"); + list_empty(&hdr->loh_lru) ? "" : " lru", + hdr->loh_attr & LOHA_EXISTS ? " exist":""); } /* -- 1.8.3.1