Skip to content
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

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

YongxueHong
Copy link
Contributor

@YongxueHong YongxueHong commented Sep 22, 2023

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

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]>
@YongxueHong
Copy link
Contributor Author

Hi @nickzhq @zhencliu @qingwangrh
Would you like to help me to review it? Thanks a lot.

@qingwangrh
Copy link
Contributor

refer to https://issues.redhat.com/browse/KVMAUTOMA-1320
the detect_zeroes only exist on 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}, "detect-zeroes": "on"}'
-blockdev '{"node-name": "drive_stg1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_stg1", "detect-zeroes": "on", "discard": "ignore"}' \

@nickzhq
Copy link
Contributor

nickzhq commented Sep 25, 2023

Hi @nickzhq @zhencliu @qingwangrh Would you like to help me to review it? Thanks a lot.

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]>
@YongxueHong
Copy link
Contributor Author

refer to https://issues.redhat.com/browse/KVMAUTOMA-1320 the detect_zeroes only exist on 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}, "detect-zeroes": "on"}' -blockdev '{"node-name": "drive_stg1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_stg1", "detect-zeroes": "on", "discard": "ignore"}' \

Hi @qingwangrh
Thanks for reminding, I added a commit to handle it 464643c
Please help to review it. Thanks a lot.

@qingwangrh
Copy link
Contributor

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}}'
-blockdev '{"node-name": "drive_stg1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_stg1", "detect-zeroes": "off", "discard": "ignore"}' \

other part looks good.

@YongxueHong
Copy link
Contributor Author

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}}' -blockdev '{"node-name": "drive_stg1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_stg1", "detect-zeroes": "off", "discard": "ignore"}' \

other part looks good.

Hi @qingwangrh
Got it, I think that is a new requirement and I plan to create another PR to handle it.
Let's merge this PR ASAP since it results in the regression error.
Please let me know your opinion. Thanks.

@qingwangrh
Copy link
Contributor

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}}' -blockdev '{"node-name": "drive_stg1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_stg1", "detect-zeroes": "off", "discard": "ignore"}'
other part looks good.

Hi @qingwangrh Got it, I think that is a new requirement and I plan to create another PR to handle it. Let's merge this PR ASAP since it results in the regression error. Please let me know your opinion. Thanks.

OK, LGTM. thanks.

@YongxueHong
Copy link
Contributor Author

Thanks all, let's merge it.

@YongxueHong YongxueHong merged commit c1a4895 into avocado-framework:master Sep 26, 2023
49 checks passed
@YongxueHong YongxueHong deleted the kvmautoma-1320 branch March 28, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants