From: Sage Weil Date: Fri, 11 Nov 2011 22:59:38 +0000 (-0800) Subject: crush: grammer: allow '.' in name token X-Git-Tag: v0.39~66^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=07950bb8f019ecc5ff57e1dd083e6543ab6d34df;p=ceph-ci.git crush: grammer: allow '.' in name token These are now in the generated crush maps, so it seems appropriate to recompile them :). Reported-by: Martin Mailand Signed-off-by: Sage Weil --- diff --git a/src/crush/grammar.h b/src/crush/grammar.h index a68494d61da..d673af7f7de 100644 --- a/src/crush/grammar.h +++ b/src/crush/grammar.h @@ -87,7 +87,7 @@ struct crush_grammar : public 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;