[Libguestfs] [PATCH v2 5/5] launch: direct: Disable qemu locking when opening drives readonly (RHBZ#1417306).

Pino Toscano ptoscano at redhat.com
Tue Sep 12 13:05:58 UTC 2017


On Tuesday, 12 September 2017 14:29:16 CEST Richard W.M. Jones wrote:
> @@ -255,11 +256,13 @@ add_drive_standard_params (guestfs_h *g, struct backend_direct_data *data,
>    }
>    else {
>      /* Writable qcow2 overlay on top of read-only drive. */
> -    append_list_format ("file=%s", drv->overlay);
> +    append_list_format ("file.file.filename=%s", drv->overlay);
> +    append_list ("file.driver=qcow2");
>      append_list ("cache=unsafe");
> -    append_list ("format=qcow2");
>      if (drv->disk_label)
>        append_list_format ("serial=%s", drv->disk_label);
> +    if (data->qemu_mandatory_locking)
> +      append_list ("file.backing.file.locking=off");
>    }

The same ought to be done for the appliance drive too.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170912/c03cb349/attachment.sig>


More information about the Libguestfs mailing list