]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
uClient: debug output for inode issues.
authorGreg Farnum <gregf@hq.newdream.net>
Mon, 10 Aug 2009 20:30:16 +0000 (13:30 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Tue, 11 Aug 2009 00:00:19 +0000 (17:00 -0700)
src/client/Client.cc

index 5aa44583b55e20e8b3d44e7cae731db6dec6c358..215ee340ffcb559fa3927b9e826744f4b6403465 100644 (file)
@@ -85,8 +85,12 @@ ostream& operator<<(ostream &out, Inode &in)
   out << in.vino() << "("
       << " cap_refs=" << in.cap_refs
       << " open=" << in.open_by_mode
-      << " ref=" << in.ref
-      << " parent=" << in.dn
+      << " ref=" << in.ref;
+  if (in.dirty_caps)
+    out << " dirty_caps=" << ccap_string(in.dirty_caps);
+  if (in.flushing_caps)
+    out << " flushing_caps=" << ccap_string(in.flushing_caps);
+  out << " parent=" << in.dn
       << ")";
   return out;
 }
@@ -234,7 +238,8 @@ void Client::dump_cache()
     
     dout(1) << "dump_cache: inode " << it->first
             << " ref " << it->second->ref 
-            << " dir " << it->second->dir << dendl;
+            << " dir " << it->second->dir
+           << " " << *it->second << dendl;
     if (it->second->dir) {
       dout(1) << "  dir size " << it->second->dir->dentries.size() << dendl;
     }