Re: [libvirt] [PATCH] virsh edit command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 30, 2008 at 07:54:46AM -0400, Daniel Veillard wrote:
> On Wed, Jul 30, 2008 at 12:49:20PM +0100, Richard W.M. Jones wrote:
> > On Wed, Jul 30, 2008 at 06:04:23AM -0400, Daniel Veillard wrote:
> > > On Wed, Jul 30, 2008 at 10:56:48AM +0100, Richard W.M. Jones wrote:
> > > > On Wed, Jul 30, 2008 at 05:43:44AM -0400, Daniel Veillard wrote:
> > > > >   Hum, I would check for basic well-formedness here because it just
> > > > > too easy to break the XML file while editing with a text editor
> > > > 
> > > > But the subsequent call to virDomainDefineXML should fail if the XML
> > > > isn't well-formed.
> > > 
> > >   Right, but you're taking a risk and not giving a chance for the
> > > user to escape while being safe.
> > 
> > As it stands, this is the error message that users get if they edit
> > the XML so that it is not well-formed:
> > 
> >   # virsh edit RHEL5U2
> >   libvir: QEMU error : XML description not well formed or invalid
> > 
> > and the XML isn't changed.
> 
>   and they don't see the error information from libxml2 and the line number ?

Hmm, I seem to recall that you previously modified the Xen driver's
XML parser to try and include that info. This could be something
we need to add to the new XML parser for better error reporting.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]