[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 02/27] qapi: Add lock-image in blockdev-add optio
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v3 02/27] qapi: Add lock-image in blockdev-add options |
Date: |
Thu, 28 Apr 2016 20:57:21 +0800 |
To allow overriding the default locking behavior when opening the image.
Signed-off-by: Fam Zheng <address@hidden>
---
qapi/block-core.json | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 1d09079..2913f3e 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -2065,6 +2065,9 @@
# @detect-zeroes: #optional detect and optimize zero writes (Since 2.1)
# (default: off)
#
+# @lock-image: #optional whether to lock the image (default: true)
+# (Since 2.7)
+#
# Remaining options are determined by the block driver.
#
# Since: 1.7
@@ -2082,7 +2085,8 @@
'*stats-account-invalid': 'bool',
'*stats-account-failed': 'bool',
'*stats-intervals': ['int'],
- '*detect-zeroes': 'BlockdevDetectZeroesOptions' },
+ '*detect-zeroes': 'BlockdevDetectZeroesOptions',
+ '*lock-image': 'bool' },
'discriminator': 'driver',
'data': {
'archipelago':'BlockdevOptionsArchipelago',
--
2.8.0
- [Qemu-devel] [PATCH v3 00/27] block: Lock images when opening, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 01/27] block: Add BDRV_O_NO_LOCK, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 03/27] blockdev: Add and parse "lock-image" option for block devices, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 02/27] qapi: Add lock-image in blockdev-add options,
Fam Zheng <=
- [Qemu-devel] [PATCH v3 05/27] block: Add bdrv_image_locked, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 04/27] block: Introduce image file locking, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 07/27] block: Handle image locking during reopen, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 06/27] block: Make bdrv_reopen_{commit, abort} private functions, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 08/27] osdep: Add qemu_lock_fd and qemu_unlock_fd, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 10/27] raw-posix: Use qemu_dup, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 09/27] osdep: Introduce qemu_dup, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 11/27] raw-posix: Implement .bdrv_lockf, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 12/27] gluster: Implement .bdrv_lockf, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 13/27] qemu-io: Add "-L" option for BDRV_O_NO_LOCK, Fam Zheng, 2016/04/28