diff options
author | David Scott <dave.scott@eu.citrix.com> | 2013-04-23 10:59:26 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-04-24 12:15:44 +0100 |
commit | a8a1f236a2964506a22d1779648d8e1c8668cb1a (patch) | |
tree | 54ebb8f4bc5f5c980ac12ce204f7fca3dfa023aa /tools/xenbackendd | |
parent | 3051bdedc3ef82eb5f14978823dec00784d69d0e (diff) | |
download | xen-a8a1f236a2964506a22d1779648d8e1c8668cb1a.tar.gz xen-a8a1f236a2964506a22d1779648d8e1c8668cb1a.tar.bz2 xen-a8a1f236a2964506a22d1779648d8e1c8668cb1a.zip |
libxl: Only call stat() when adding a disk if we expect a device to exist.
We consider calling stat() a helpful error check in the following
circumstances only:
1. the disk backend type must be PHYsical
2. the disk backend domain must be the same as the running libxl
code (ie LIBXL_TOOLSTACK_DOMID)
3. there must not be a hotplug script because this would imply that
the device won't be created until after the hotplug script has
run.
With this fix, it is possible to use qemu's built-in block drivers
such as ceph/rbd, with a xl config disk spec like this:
disk=[ 'backendtype=qdisk,format=raw,vdev=hda,access=rw,target=rbd:rbd/ubuntu1204.img' ]
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Diffstat (limited to 'tools/xenbackendd')
0 files changed, 0 insertions, 0 deletions