mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
iotests: Set read-zeroes on in null block driver for Valgrind
The Valgrind tool reports about the uninitialised buffer 'buf' instantiated on the stack of the function guess_disk_lchs(). Pass 'read-zeroes=on' to the null block driver to make it deterministic. The output of the tests 051, 186 and 227 now includes the parameter 'read-zeroes'. So, the benchmark output files are being changed too. Suggested-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
0274f45bde
commit
a6862418fe
10 changed files with 111 additions and 109 deletions
|
@ -251,11 +251,11 @@ echo
|
|||
# Cannot use the test image because cache=none might not work on the host FS
|
||||
# Use cdrom so that we won't get errors about missing media
|
||||
|
||||
run_qemu -drive driver=null-co,cache=none
|
||||
run_qemu -drive driver=null-co,cache=directsync
|
||||
run_qemu -drive driver=null-co,cache=writeback
|
||||
run_qemu -drive driver=null-co,cache=writethrough
|
||||
run_qemu -drive driver=null-co,cache=unsafe
|
||||
run_qemu -drive driver=null-co,read-zeroes=on,cache=none
|
||||
run_qemu -drive driver=null-co,read-zeroes=on,cache=directsync
|
||||
run_qemu -drive driver=null-co,read-zeroes=on,cache=writeback
|
||||
run_qemu -drive driver=null-co,read-zeroes=on,cache=writethrough
|
||||
run_qemu -drive driver=null-co,read-zeroes=on,cache=unsafe
|
||||
run_qemu -drive driver=null-co,cache=invalid_value
|
||||
|
||||
# Can't test direct=on here because O_DIRECT might not be supported on this FS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue