Re: [PATCH 2/6] tests/qtest/migration: Initialize buffer in probe_o_direct_support

2024-12-09 Thread Peter Xu
On Mon, Dec 09, 2024 at 05:44:23PM -0300, Fabiano Rosas wrote: > Valgrind complains about the probe_o_direct_support() function reading > from an uninitialized buffer. For probing O_DIRECT support we don't > actually need to write to the file, just make sure the pwrite call > doesn't reject the wri

Re: [PATCH 2/6] tests/qtest/migration: Initialize buffer in probe_o_direct_support

2024-12-09 Thread Philippe Mathieu-Daudé
On 9/12/24 21:44, Fabiano Rosas wrote: Valgrind complains about the probe_o_direct_support() function reading from an uninitialized buffer. For probing O_DIRECT support we don't actually need to write to the file, just make sure the pwrite call doesn't reject the write. Still, write zeroes to the