From 8e198dc1c50fcdba6720b23da478ef75cc979733 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 3 Oct 2012 10:49:20 +0100 Subject: 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. --- src/launch-libvirt.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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); -- cgit