Message ID | 169687551965.3948976.15125603449708923383.stgit@frogsfrogsfrogs (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fstests: random fixes for v2023.10.08 | expand |
Yes, this looks sensible. I've actually seen sproadic failures from
this test for a while and had this on my list to investigate.
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/src/aio-dio-regress/aio-dio-append-write-read-race.c b/src/aio-dio-regress/aio-dio-append-write-read-race.c index 911f27230b..d9f8982f00 100644 --- a/src/aio-dio-regress/aio-dio-append-write-read-race.c +++ b/src/aio-dio-regress/aio-dio-append-write-read-race.c @@ -191,7 +191,7 @@ int main(int argc, char *argv[]) } for (j = 0; j < rdata.read_sz; j++) { - if (rdata.buf[j] != 'a') { + if (rdata.buf[j] != 'a' && rdata.buf[j] != 0) { fail("encounter an error: " "block %d offset %d, content %x\n", i, j, rbuf[j]);