Now that test cases are covered, we can turn it on.
Signed-off-by: Fam Zheng <[email protected]>
---
blockdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blockdev.c b/blockdev.c
index 9968568..007690b 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -383,7 +383,7 @@ static void extract_common_blockdev_options(QemuOpts *opts,
int *bdrv_flags,
}
}
- if (!qemu_opt_get_bool(opts, "lock-image", false)) {
+ if (!qemu_opt_get_bool(opts, "lock-image", true)) {
*bdrv_flags |= BDRV_O_NO_LOCK;
}
}
--
2.8.0