diff options
author | Bernd Schubert <bernd.schubert@fastmail.fm> | 2024-02-26 19:09:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 19:09:00 +0100 |
commit | 31bf17c7448944a04d4c84df534013a4d6924acc (patch) | |
tree | f59aaa750980fac7798236abb07c2d6597b0af39 /example/notify_store_retrieve.c | |
parent | f557f3677586d4e22a6208e5dc2ceea4e1999462 (diff) | |
download | libfuse-31bf17c7448944a04d4c84df534013a4d6924acc.tar.gz |
Fix tests/test_write_cache in write back mode (#892)
This test could fail whenever a something (kernel, userspace) decides
to flush in between of two 2048B writes. These two writes are supposed
to be merged into a single 4906 byte write by the kernel writeback cache,
but _sometimes_ the test fails because 2048 byte writes get through.
Fixes #882
Solution here is a modification how the test works - instead
of requiring an exact aggregation of 2x2048B into 4096B,
it now writes 64x2048B and requires in write-back modes
the number of received writes requests is lower than 64 - we
can expect that at least some writes get aggregated, but we do
know how many.
Co-authored-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'example/notify_store_retrieve.c')
0 files changed, 0 insertions, 0 deletions