Re: [Libvir] [PATCH] Allow modifying existing block device, making virDomainAttachDevice modify the device if it already exists

2007-09-10 Thread Daniel Veillard
On Thu, Sep 06, 2007 at 02:37:50PM -0400, Hugh Brock wrote: > Daniel P. Berrange wrote: > >On Thu, Sep 06, 2007 at 11:59:08AM -0400, Daniel Veillard wrote: > >>On Thu, Sep 06, 2007 at 11:45:39AM -0400, Hugh Brock wrote: > >>>The attached patch adds code to xend_internal.c:xenDomainAttachDevice > >

Re: [Libvir] [PATCH] Allow modifying existing block device, making virDomainAttachDevice modify the device if it already exists

2007-09-06 Thread Hugh Brock
Daniel P. Berrange wrote: On Thu, Sep 06, 2007 at 11:59:08AM -0400, Daniel Veillard wrote: On Thu, Sep 06, 2007 at 11:45:39AM -0400, Hugh Brock wrote: The attached patch adds code to xend_internal.c:xenDomainAttachDevice that checks to see if the device mentioned in the passed-in XML already e

Re: [Libvir] [PATCH] Allow modifying existing block device, making virDomainAttachDevice modify the device if it already exists

2007-09-06 Thread Daniel P. Berrange
On Thu, Sep 06, 2007 at 11:59:08AM -0400, Daniel Veillard wrote: > On Thu, Sep 06, 2007 at 11:45:39AM -0400, Hugh Brock wrote: > > The attached patch adds code to xend_internal.c:xenDomainAttachDevice > > that checks to see if the device mentioned in the passed-in XML already > > exists, and if s

Re: [Libvir] [PATCH] Allow modifying existing block device, making virDomainAttachDevice modify the device if it already exists

2007-09-06 Thread Daniel Veillard
On Thu, Sep 06, 2007 at 11:45:39AM -0400, Hugh Brock wrote: > The attached patch adds code to xend_internal.c:xenDomainAttachDevice > that checks to see if the device mentioned in the passed-in XML already > exists, and if so calls op_device_configure to modify the device. It is > particularly u

[Libvir] [PATCH] Allow modifying existing block device, making virDomainAttachDevice modify the device if it already exists

2007-09-06 Thread Hugh Brock
The attached patch adds code to xend_internal.c:xenDomainAttachDevice that checks to see if the device mentioned in the passed-in XML already exists, and if so calls op_device_configure to modify the device. It is particularly useful for connecting and disconnecting a hardware cdrom device to a