Whamcloud - gitweb
EX-9196 csdc: do not round lnb size up to the PAGE_SIZE
authorArtem Blagodarenko <ablagodarenko@ddn.com>
Thu, 21 Mar 2024 17:39:03 +0000 (17:39 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 23 Mar 2024 20:33:14 +0000 (20:33 +0000)
commitaec1a05dcb69bc0a9c29c3df0ac5d661487f882d
tree093f0f491248277b8912257344f04733400a0cb1
parent7d3b69f44e9279e9f29e480b4c66c35f4d5c2201
EX-9196 csdc: do not round lnb size up to the PAGE_SIZE

lnb size is successfully updated to the right one in case the chunk
has been decompressed but left equual to the PAGE_SIZE in case it
hasn't. This leads to the wrong file size change.

This patch set lnb size before the decompression, so if lnb hasn't
decompressed this size is left as is.

Signed-off-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Test-Parameters: trivial testlist=sanity-compr env=ONLY=1003
Change-Id: I4b8149cc3aab1973a1a261b2e164c321019a437e
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54518
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ofd/ofd_compress.c
lustre/ofd/ofd_io.c
lustre/tests/test-framework.sh