Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
203b739
)
more debug message.
author
lsy
<lsy>
Wed, 21 Sep 2005 15:45:19 +0000
(15:45 +0000)
committer
lsy
<lsy>
Wed, 21 Sep 2005 15:45:19 +0000
(15:45 +0000)
lustre/llite/llite_capa.c
patch
|
blob
|
history
lustre/obdclass/capa.c
patch
|
blob
|
history
diff --git
a/lustre/llite/llite_capa.c
b/lustre/llite/llite_capa.c
index
8aec261
..
42d1ecb
100644
(file)
--- 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 */
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;
return 0;
+ }
ENTRY;
ENTRY;
diff --git
a/lustre/obdclass/capa.c
b/lustre/obdclass/capa.c
index
4063426
..
3a5d75f
100644
(file)
--- 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;
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))) {
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;
DEBUG_CAPA(D_INODE, &ocapa->c_capa, "found %s",
capa_type_name[ocapa->c_type]);
return ocapa;