[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 02/20] qapi: Add lock-mode in blockdev-add op
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v7 02/20] qapi: Add lock-mode in blockdev-add options |
Date: |
Thu, 22 Sep 2016 09:58:53 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 08/08/2016 08:13 AM, Fam Zheng wrote:
> To allow overriding the default locking behavior when opening the image.
>
> Signed-off-by: Fam Zheng <address@hidden>
> ---
> qapi/block-core.json | 19 ++++++++++++++++++-
> 1 file changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 5e2d7d7..d1eb197 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -2151,6 +2151,20 @@
> '*debug-level': 'int' } }
>
> ##
> +# @BlockdevLockMode
> +#
> +# Describes how QEMU should lock the image.
> +#
> +# @off: Disabled
> +# @shared: Use shared lock for both RO and RW images.
> +# @auto: Use exclusive lock for RW images, and shared lock for RO
> images.
> +#
> +# Since: 2.7
Just a reminder to update this to 2.8 (probably throughout the series).
> @@ -2185,7 +2201,8 @@
> '*cache': 'BlockdevCacheOptions',
> '*aio': 'BlockdevAioOptions',
> '*read-only': 'bool',
> - '*detect-zeroes': 'BlockdevDetectZeroesOptions' },
> + '*detect-zeroes': 'BlockdevDetectZeroesOptions',
> + '*lock-mode': 'BlockdevLockMode' },
> 'discriminator': 'driver',
> 'data': {
> 'archipelago':'BlockdevOptionsArchipelago',
>
Will this need (yet another) rebase on top of Kevin's blockdev-add work?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature