Whamcloud - gitweb
- additional debug to catch the case when client gets openhandle w/o capa
authoralex <alex>
Wed, 21 Sep 2005 20:42:37 +0000 (20:42 +0000)
committeralex <alex>
Wed, 21 Sep 2005 20:42:37 +0000 (20:42 +0000)
lustre/llite/llite_capa.c
lustre/mds/mds_open.c

index 42d1ecb..e9296b1 100644 (file)
@@ -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;
         }
index b2d4416..f00cac4 100644 (file)
@@ -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