-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qdevices: Fix the missing of the detect-zeroes #3771
qdevices: Fix the missing of the detect-zeroes #3771
Conversation
The option detect-zeroes should be kept the original type of the value, not drop it from the blockdev options. Signed-off-by: Yongxue Hong <[email protected]>
e8b140f
to
97f7010
Compare
Hi @nickzhq @zhencliu @qingwangrh |
refer to https://issues.redhat.com/browse/KVMAUTOMA-1320 -blockdev '{"node-name": "file_stg1", "driver": "file", "auto-read-only": true, "discard": "ignore", "aio": "threads", "filename": "/home/kvm_autotest_root/images/stg1.qcow2", "cache": {"direct": true, "no-flush": false}, "detect-zeroes": "on"}' |
Ack. |
The upper products do not involve the option detect-zeroes into the protocol node rather than the format node does it. For aligning the upper behaviors, to disable the option detect-zeroes for the protocol node in the qemu layer. Signed-off-by: Yongxue Hong <[email protected]>
87f06b6
to
464643c
Compare
Hi @qingwangrh |
the protocol node the discard always is unmap, it just affects the format node. -blockdev '{"node-name": "file_stg1", "driver": "file", "auto-read-only": true, "discard": "ignore", "aio": "threads", "filename": "/home/kvm_autotest_root/images/stg1.qcow2", "cache": {"direct": true, "no-flush": false}}' other part looks good. |
Hi @qingwangrh |
OK, LGTM. thanks. |
Thanks all, let's merge it. |
There has been a regression issue since the patch #3710
This path's aim is to keep the original type of value for the
detect-zeroes
, not drop it from the blockdev options.ID: 1320