On Fri, Jan 08, 2010 at 05:23:16PM +0000, Daniel P. Berrange wrote:
When starting a guest, give every device a unique alias. This will
be used for the 'id' parameter in -device args in later patches.
It can also be used to uniquely identify devices in the monitor
For old QEMU without -device, assign disk names based on QEMU's
historical naming scheme.
* src/qemu/qemu_conf.c: Assign unique device aliases
* src/qemu/qemu_driver.c: Remove obsolete qemudDiskDeviceName
and use the device alias in eject & blockstats commands
---
src/qemu/qemu_conf.c | 173 ++++++++++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_driver.c | 104 ++++++-----------------------
2 files changed, 195 insertions(+), 82 deletions(-)
How would the user see the alias in practice ? They won't be
dumped in the XML if I understand correctly so how to they get exposed ?
ACK,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/