From 628ac7d56843566cf7b84e6ff794e6dfd016dee8 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 21 Sep 2005 20:42:37 +0000 Subject: [PATCH] - additional debug to catch the case when client gets openhandle w/o capa --- lustre/llite/llite_capa.c | 9 ++++----- lustre/mds/mds_open.c | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lustre/llite/llite_capa.c b/lustre/llite/llite_capa.c index 42d1ecb..e9296b1 100644 --- a/lustre/llite/llite_capa.c +++ b/lustre/llite/llite_capa.c @@ -259,11 +259,10 @@ int ll_set_capa(struct inode *inode, struct lookup_intent *it, if (!(body->valid & OBD_MD_CAPA)) { if (atomic_read(&ll_capa_stat)) - CDEBUG(D_ERROR, "no capa for (uid %u, op %d, mdsid " - LPU64", ino %lu igen %u)\n", - (unsigned)current->uid, it->it_flags, - id_group(&lli->lli_id), id_ino(&lli->lli_id), - id_gen(&lli->lli_id)); + DEBUG_REQ(D_ERROR, req, + "no capa for (uid %u, op %d, "DLID4"\n", + (unsigned)current->uid, it->it_flags, + OLID4(&lli->lli_id)); return 0; } diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index b2d4416..f00cac4 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -632,6 +632,7 @@ static void reconstruct_open(struct mds_update_record *rec, int offset, if (!(body->valid & OBD_MD_FLEASIZE)) body->valid |= (OBD_MD_FLSIZE | OBD_MD_FLBLOCKS | OBD_MD_FLATIME | OBD_MD_FLMTIME); + DEBUG_REQ(D_ERROR, req, "no capa for "DLID4, OLID4(&body->id1)); } /* If we have -EEXIST as the status, and we were asked to create -- 1.8.3.1