[rrd-developers] DS_NAM_FMT vs. DEF_NAM_FMT

Jake Brutlag jakeb at microsoft.com
Wed Jul 23 01:55:04 MEST 2003


DS_NAM_FMT, used for data source names and DEF_NAM_FMT used for vnames
in graph arguments aren't identical. This presents a  problem for
computed data sources (1.1.x), in which data source names are referenced
in rpn expressions. But valid data sources name may not meet
DEF_NAM_FMT.

rrd_format.h:#define DS_NAM_FMT    "%19[a-zA-Z0-9_-]"

rrd_graph.h:#define DEF_NAM_FMT "%29[_A-Za-z0-9]"

DS_NAM_FMT allows dash (hyphen) characters while DEF_NAM_FMT does not.
Would there be any objections to DEF_NAM_FMT permitting dash characters?
It is true that dash is the minus operator in rpn, but this would only
be problem if the data source name starts with a dash (which seems
unlikely).

Jake Brutlag
Network Analyst
Microsoft MSN 

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list