aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-05-03 00:35:50 +0800
committerKevin Wolf <kwolf@redhat.com>2017-05-11 11:08:40 +0200
commit16b48d5d66d2fceb86114b28d693aad930f5070d (patch)
tree8bb260acafcb9eb3eae20b4af6c886ba065abfd6 /qapi
parent2420d369a2c16867ee18fd363b617aa5a66ab933 (diff)
downloadqemu-16b48d5d66d2fceb86114b28d693aad930f5070d.zip
qemu-16b48d5d66d2fceb86114b28d693aad930f5070d.tar.gz
qemu-16b48d5d66d2fceb86114b28d693aad930f5070d.tar.bz2
file-posix: Add 'locking' option
Making this option available even before implementing it will let converting tests easier: in coming patches they can specify the option already when necessary, before we actually write code to lock the images. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block-core.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 30d5952..52e3ecd 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -2127,11 +2127,15 @@
#
# @filename: path to the image file
# @aio: AIO backend (default: threads) (since: 2.8)
+# @locking: whether to enable file locking. If set to 'auto', only enable
+# when Open File Descriptor (OFD) locking API is available
+# (default: auto, since 2.10)
#
# Since: 2.9
##
{ 'struct': 'BlockdevOptionsFile',
'data': { 'filename': 'str',
+ '*locking': 'OnOffAuto',
'*aio': 'BlockdevAioOptions' } }
##