Message ID | 1460690887-32751-17-git-send-email-famz@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/blockdev.c b/blockdev.c index 93bd43e..87d22c3 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; } }
Now that test cases are covered, we can turn it on. Signed-off-by: Fam Zheng <famz@redhat.com> --- blockdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)