
On Tue, Feb 23, 2010 at 03:35:04PM -0700, Jim Fehlig wrote:
Daniel P. Berrange wrote:
On Mon, Feb 22, 2010 at 02:50:07PM -0700, Jim Fehlig wrote:
Disk devices can be referenced by name in Xen, e.g. when modifying their configuration or remvoving them. As such, don't search xenstore for a device ID corresponding to the disk device. Instead, search the disks contained in the domain definition and use the disk's target name if found.
This approach allows removing a disk when domain is inactive. We obviously can't search xenstore when the domain is inactive.
This sounds reasonable, but I'm wondering if old XenD support the lookup-based on name ?
Yes, I had thought about this as well. Guess it depends on how old we are talking about. It exists in Xen 3.1.x and newer. I wonder if we should even care about Xen 3.0.x. The upstream tree hasn't been touched in 3 years.
Well we still ship this, so it would be appreciated if it didn't broke if libvirt got updated for some reasons ;-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/