[libvirt] [PATCH] examples: Correct the example command to use testnode.xml

Daniel Veillard veillard at redhat.com
Tue Nov 29 10:58:26 UTC 2011


On Tue, Nov 29, 2011 at 07:12:31PM +0800, Osier Yang wrote:
>  * s/-connection/-c/
>  * Removes the redundant '/'.
>  * Add "absolute" so that it's more clear.
> 
> Pushed under trivial rule.
> ---
>  examples/xml/test/testnode.xml |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/examples/xml/test/testnode.xml b/examples/xml/test/testnode.xml
> index adc5440..001e353 100644
> --- a/examples/xml/test/testnode.xml
> +++ b/examples/xml/test/testnode.xml
> @@ -4,7 +4,7 @@
>       of applications using libvirt. To use this with virsh, run something
>       like:
>  
> -      virsh -connect test:////path/to/this/dir/testnode.xml nodeinfo
> +      virsh -c test://absolute/path/to/this/dir/testnode.xml nodeinfo

  Actually that's wrong :-)

  That mean the resource /path/to/this/dir/testnode.xml on the absolute
server, reached with test protocol from an URI perspective, so we need
at least and extra / because "" server means local host:
  test:///absolute/path/to/this/dir/testnode.xml

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list