@@ -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',
To allow overriding the default locking behavior when opening the image. Signed-off-by: Fam Zheng <famz@redhat.com> --- qapi/block-core.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)