]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: Debugging output
authorGreg Farnum <gregf@hq.newdream.net>
Wed, 7 Oct 2009 16:20:59 +0000 (09:20 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 9 Oct 2009 23:44:50 +0000 (16:44 -0700)
src/client/Client.cc

index 95c74d6d9c6a8d61a332c7b813f116a7f392066e..3d36db2601aa95b0b4db328afd443ce645b5e8f6 100644 (file)
@@ -4022,14 +4022,12 @@ void Client::seekdir(DIR *dirp, loff_t offset)
 
 int Client::open(const char *relpath, int flags, mode_t mode) 
 {
-  dout(3) << "open enter(" << relpath << ", " << flags << ") = " << dendl;
+  dout(3) << "open enter(" << relpath << ", " << flags << "," << mode << ") = " << dendl;
   Mutex::Locker lock(client_lock);
   tout << "open" << std::endl;
   tout << relpath << std::endl;
   tout << flags << std::endl;
 
-  dout(5) << "open(" << relpath << ", " << flags << ", " << mode << ")" << dendl;
-
   Fh *fh = NULL;
 
   filepath path(relpath);
@@ -5339,7 +5337,13 @@ int Client::_create(Inode *dir, const char *name, int flags, mode_t mode, Inode
     
   trim_cache();
 
-  dout(3) << "create(" << path << ", 0" << oct << mode << dec << ") = " << res << dendl;
+  dout(3) << "create(" << path << ", 0" << oct << mode << dec 
+         << " layout " << file_stripe_unit
+         << ' ' << file_stripe_count
+         << ' ' << object_size
+         << ' ' << file_replication
+         << ' ' << preferred_pg
+         <<") = " << res << dendl;
   return res;
 }
 
@@ -5803,7 +5807,9 @@ void Client::set_default_file_replication(int replication)
 void Client::set_default_preferred_pg(int pg)
 {
   if (pg >= 0)
-  preferred_pg = pg;
+    preferred_pg = pg;
+  else
+    dout(5) << "Attempt to set preferred_pg " << pg << " < 0!" << dendl;
 }
 
 int Client::describe_layout(int fd, ceph_file_layout *lp)