]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: osd parser to accept 'pool'
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 23 Oct 2009 19:28:59 +0000 (12:28 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 23 Oct 2009 19:53:58 +0000 (12:53 -0700)
src/osd/OSD.cc

index e0f4a0df4b468f5f6322934fa8bcce17bb498162..c8ec9c7ef9bd8135d3ed8abaccdb540599e8369b 100644 (file)
@@ -4346,7 +4346,7 @@ bool OSD::OSDCaps::parse(bufferlist::iterator& iter)
   try {
     ::decode(s, iter);
 
-    *_dout << "decoded caps: " << s << std::endl;
+    generic_dout(0) << "decoded caps: " << s << std::endl;
 
     size_t pos = 0;
     string token;
@@ -4391,7 +4391,8 @@ do { \
         } else if (token.compare("deny") == 0) {
           ASSERT_STATE((!op_allow) && (!op_deny));
           op_deny = true;
-        } else if (token.compare("pools") == 0) {
+        } else if ((token.compare("pools") == 0) ||
+                   (token.compare("pool") == 0)) {
           ASSERT_STATE(op_allow || op_deny);
           cmd_pool = true;
           any_cmd = true;
@@ -4436,13 +4437,12 @@ do { \
     return false;
   }
 
-  *_dout << "default=" << default_action << std::endl;
+  generic_dout(0) << "default=" << default_action << std::endl;
   map<int, OSDPoolCap>::iterator it;
   for (it = pools_map.begin(); it != pools_map.end(); ++it) {
-    *_dout << it->first << " -> (" << it->second.allow << "." << it->second.deny << ")" << std::endl;
+    generic_dout(0) << it->first << " -> (" << it->second.allow << "." << it->second.deny << ")" << std::endl;
   }
 
-
   return true;
 }