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.
This commit is contained in:
Richard W.M. Jones
2012-10-03 10:49:20 +01:00
parent 60650da1ed
commit 8e198dc1c5

View File

@@ -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);