Whamcloud - gitweb
EX-7601 ofd: add chunk rounding to write
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 2 Nov 2023 21:40:38 +0000 (17:40 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Dec 2023 11:07:40 +0000 (11:07 +0000)
commitb3fbe03e8d2f0b476855a36d33385259213b0074
tree326969729f540cd2ef7417362eb4d09aa18fc8f3
parent5c2d8aa7daa18b9c709c96a5bec7518a7a849550
EX-7601 ofd: add chunk rounding to write

For compressed files, we need to round all niobufs to
chunk size in the write process, so we have buffers for
reading in and rewriting the complete chunks.

dt_bufs_get sets up the local niobuf for the write, so we
round before calling it.

Note this breaks writing to compressed files, which is not
fixed until a few patches later.  For this reason, we
disable the compression tests.  They will be reenabled
shortly - similar to how we handled the read series.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I413aaba9866dd7d6c4463fa620eadf1423379ba1
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52963
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
lustre/ofd/ofd_io.c
lustre/tests/sanity-compr.sh
lustre/tests/sanity-pfl.sh
lustre/tests/sanity.sh