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 <martin@tuxadero.com>
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-11-11 14:59:38 -08:00
parent b600ec2ac7
commit 07950bb8f0

View 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;