summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-10-03 10:49:20 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-10-03 11:15:30 +0100
commit8e198dc1c50fcdba6720b23da478ef75cc979733 (patch)
treeb4b3a2f7a9675b4d26ab1715c4e1520e4a5ecaf0
parent60650da1ed7b6d916ceeee0e397c7bb2fbc282e5 (diff)
downloadlibguestfs-8e198dc1c50fcdba6720b23da478ef75cc979733.tar.gz
libguestfs-8e198dc1c50fcdba6720b23da478ef75cc979733.tar.xz
libguestfs-8e198dc1c50fcdba6720b23da478ef75cc979733.zip
launch: libvirt: The drive 'iface' parameter is not yet supported.
We could add support, but at the moment return an error if the user tries to use the iface parameter.
-rw-r--r--src/launch-libvirt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
index d3bb0bfe..d678266f 100644
--- a/src/launch-libvirt.c
+++ b/src/launch-libvirt.c
@@ -786,6 +786,12 @@ construct_libvirt_xml_disk (guestfs_h *g, xmlTextWriterPtr xo,
char *format = NULL;
int is_host_device;
+ /* XXX We probably could support this if we thought about it some more. */
+ if (drv->iface) {
+ error (g, _("'iface' parameter is not supported by the libvirt attach-method"));
+ goto err;
+ }
+
guestfs___drive_name (drv_index, &drive_name[2]);
snprintf (scsi_target, sizeof scsi_target, "%zu", drv_index);