[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 21/22] block: Turn on image locking by default
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v6 21/22] block: Turn on image locking by default |
Date: |
Fri, 3 Jun 2016 16:49:15 +0800 |
Now that test cases are covered, we can turn it on.
Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
---
blockdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blockdev.c b/blockdev.c
index 4a9fa7c..7e70e02 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -384,7 +384,7 @@ static void extract_common_blockdev_options(QemuOpts *opts,
int *bdrv_flags,
}
}
- lock_mode = qemu_opt_get(opts, "lock-mode") ? : "off";
+ lock_mode = qemu_opt_get(opts, "lock-mode") ? : "exclusive";
if (!strcmp(lock_mode, "exclusive")) {
/* Default */
} else if (!strcmp(lock_mode, "shared")) {
--
2.8.2
- [Qemu-devel] [PATCH v6 11/22] qemu-img: Update documentation of "-L" option, (continued)
- [Qemu-devel] [PATCH v6 11/22] qemu-img: Update documentation of "-L" option, Fam Zheng, 2016/06/03
- [Qemu-devel] [PATCH v6 14/22] mirror: Disable image locking on target backing chain, Fam Zheng, 2016/06/03
- [Qemu-devel] [PATCH v6 17/22] qemu-iotests: 030: Disable image locking when checking test image, Fam Zheng, 2016/06/03
- [Qemu-devel] [PATCH v6 16/22] qemu-iotests: Wait for QEMU processes before checking image in 091, Fam Zheng, 2016/06/03
- [Qemu-devel] [PATCH v6 15/22] qemu-iotests: 046: Move version detection out from verify_io, Fam Zheng, 2016/06/03
- [Qemu-devel] [PATCH v6 18/22] iotests: 087: Disable image locking in cases where file is shared, Fam Zheng, 2016/06/03
- [Qemu-devel] [PATCH v6 19/22] iotests: Disable image locking in 085, Fam Zheng, 2016/06/03
- [Qemu-devel] [PATCH v6 20/22] tests: Use null-co:// instead of /dev/null, Fam Zheng, 2016/06/03
- [Qemu-devel] [PATCH v6 21/22] block: Turn on image locking by default,
Fam Zheng <=
- [Qemu-devel] [PATCH v6 22/22] qemu-iotests: Add test case 153 for image locking, Fam Zheng, 2016/06/03