]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: accept 'allow *' as an admin flag that sets allow_all
authorGreg Farnum <gregf@hq.newdream.net>
Wed, 10 Mar 2010 00:01:38 +0000 (16:01 -0800)
committerGreg Farnum <gregf@hq.newdream.net>
Wed, 10 Mar 2010 21:22:02 +0000 (13:22 -0800)
in the OSDCap.

src/osd/OSDCaps.cc

index b716e5957e47ff1840dc352a1509faa8c808e965..461793410ffa1650541f5101753e45c871060237 100644 (file)
@@ -101,7 +101,10 @@ do { \
 } while (0)
 
       if (get_next_token(s, pos, token)) {
-        if (token.compare("=") == 0) {
+       if (token.compare("*") == 0) { //allow all operations 
+         ASSERT_STATE(op_allow);
+         allow_all = true;
+       } else if (token.compare("=") == 0) {
           ASSERT_STATE(any_cmd);
           got_eq = true;
         } else if (token.compare("allow") == 0) {