Whamcloud - gitweb
EX-7644 mmap: add mmap support for compression
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 25 Oct 2023 16:15:59 +0000 (12:15 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Dec 2023 10:58:12 +0000 (10:58 +0000)
commit033dd0ba2cc489551ac512c92b337515556cbbbc
tree56e10c0ca561fc5fa5f3cdf195b48099cce66d85
parentaf233e1f5f30fbf3b16901d0c028f28a64337d7d
EX-7644 mmap: add mmap support for compression

This removes the EOPNOTSUPP for compression with mmap and
adds an mmap sanity test for compression.  This patch
removes all the restrictions for mmap, but we actually only
have unaligned read support right now, so the test is
deliberately simplified to only test reads.

A more complicated version which also tests mmap writes
comes later in the series, once read-modify-write is
supported.

The test tests mmap by copying data at several different
block sizes with several different compression chunk sizes.

Test-Parameters: testlist=sanity-compr env=ONLY="1003",ONLY_REPEAT=10
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I4a37b106831a903d90e8a8871e9a93baac4e201e
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52280
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/llite/llite_mmap.c
lustre/tests/Makefile.am
lustre/tests/mmap_copy_file.c [new file with mode: 0644]
lustre/tests/sanity-compr.sh
lustre/tests/sanity.sh