]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: grammer: allow '.' in name token
authorSage Weil <sage@newdream.net>
Fri, 11 Nov 2011 22:59:38 +0000 (14:59 -0800)
committerSage Weil <sage@newdream.net>
Fri, 11 Nov 2011 22:59:38 +0000 (14:59 -0800)
These are now in the generated crush maps, so it seems appropriate to
recompile them :).

Reported-by: Martin Mailand <martin@tuxadero.com>
Signed-off-by: Sage Weil <sage@newdream.net>
src/crush/grammar.h

index a68494d61da47932e69445fc14cafe93174b9c6e..d673af7f7de409d5905deecda12383a71d68d6e6 100644 (file)
@@ -87,7 +87,7 @@ struct crush_grammar : public grammar<crush_grammar>
                                            ] ];
       posint     =   leaf_node_d[ lexeme_d[ +digit_p ] ];
       negint     =   leaf_node_d[ lexeme_d[ ch_p('-') >> +digit_p ] ];
-      name = leaf_node_d[ lexeme_d[ +( alnum_p || ch_p('-') || ch_p('_')) ] ];
+      name = leaf_node_d[ lexeme_d[ +( alnum_p || ch_p('-') || ch_p('_') || ch_p('.')) ] ];
 
       // devices
       device = str_p("device") >> posint >> name;