From: lsy Date: Wed, 21 Sep 2005 15:45:19 +0000 (+0000) Subject: more debug message. X-Git-Tag: 1.4.10~442 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e7fc331c6e17ae660d8b6ae2edd60c92327f4e5d;p=fs%2Flustre-release.git more debug message. --- diff --git a/lustre/llite/llite_capa.c b/lustre/llite/llite_capa.c index 8aec261..42d1ecb 100644 --- a/lustre/llite/llite_capa.c +++ b/lustre/llite/llite_capa.c @@ -257,8 +257,16 @@ int ll_set_capa(struct inode *inode, struct lookup_intent *it, LASSERT(body != NULL); /* reply already checked out */ LASSERT_REPSWABBED(req, 1); /* and swabbed down */ - if (!(body->valid & OBD_MD_CAPA)) + 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)); + return 0; + } ENTRY; diff --git a/lustre/obdclass/capa.c b/lustre/obdclass/capa.c index 4063426..3a5d75f 100644 --- a/lustre/obdclass/capa.c +++ b/lustre/obdclass/capa.c @@ -132,9 +132,9 @@ filter_find_capa(struct hlist_head *head, struct lustre_capa *capa) hlist_for_each_entry(ocapa, pos, head, c_hash) { if (ocapa->c_type != FILTER_CAPA) continue; + if (!memcmp(&ocapa->c_capa, capa, sizeof(struct lustre_capa_data))) { - DEBUG_CAPA(D_INODE, &ocapa->c_capa, "found %s", capa_type_name[ocapa->c_type]); return ocapa;