All of lore.kernel.org
 help / color / mirror / Atom feed
* xl.cfg vfb list parsing issues
@ 2017-04-10 15:02 Doug Freed
  2017-04-11  9:36 ` Wei Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Freed @ 2017-04-10 15:02 UTC (permalink / raw)
  To: xen-devel

Hi,

This issue came up in the #xen IRC channel on freenode, and Andrew
Cooper asked for somebody to email xen-devel so it could be fixed.  A
user had the following line in their domain config and couldn't figure
out why it wasn't working correctly:

vfb=['vnclisten="10.1.1.8:2"']

The answer is, of course, that the parser is not expecting the
parameter to be quoted.  Unfortunately, the above line is consistent
with how the setting is documented in the manpage:

"vnclisten="ADDRESS[:DISPLAYNUM]""

Andrew suggested that failing to parse the parameter should trigger a
parse error, rather than proceeding as if the setting hadn't been
provided at all.  At the very least, the manpage should be updated to
remove the quoting.

-Doug
dwfreed

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: xl.cfg vfb list parsing issues
  2017-04-10 15:02 xl.cfg vfb list parsing issues Doug Freed
@ 2017-04-11  9:36 ` Wei Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2017-04-11  9:36 UTC (permalink / raw)
  To: Doug Freed; +Cc: Wei Liu, xen-devel

On Mon, Apr 10, 2017 at 11:02:37AM -0400, Doug Freed wrote:
> Hi,
> 
> This issue came up in the #xen IRC channel on freenode, and Andrew
> Cooper asked for somebody to email xen-devel so it could be fixed.  A
> user had the following line in their domain config and couldn't figure
> out why it wasn't working correctly:
> 
> vfb=['vnclisten="10.1.1.8:2"']
> 

Hmm... I thought the parser already de-quotes the string. There could be
a bug somewhere.

> The answer is, of course, that the parser is not expecting the
> parameter to be quoted.  Unfortunately, the above line is consistent
> with how the setting is documented in the manpage:
> 
> "vnclisten="ADDRESS[:DISPLAYNUM]""
> 

This definitely needs fixing: this is not valid syntax by all means.

> Andrew suggested that failing to parse the parameter should trigger a
> parse error, rather than proceeding as if the setting hadn't been
> provided at all.  At the very least, the manpage should be updated to
> remove the quoting.

Thanks. I will add Reported-by tag with your name and email address when
I send out patches.

Wei.

> 
> -Doug
> dwfreed
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-11  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10 15:02 xl.cfg vfb list parsing issues Doug Freed
2017-04-11  9:36 ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.