Whamcloud - gitweb
EX-7331 sec: disable compression for encrypted files
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 18 Oct 2023 15:34:02 +0000 (17:34 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Oct 2023 21:47:36 +0000 (21:47 +0000)
commit8ae34bec92bf961004c780334ebe5198edf70dff
tree3c17b72973995a033f173729fbb11a9f0e1eeb19
parent0d8028b9125c1b7e17c3c7c73dbddff08796c616
EX-7331 sec: disable compression for encrypted files

In case a read-modify-write io pattern is carried out on a compressed
file, it has to be handled on server side.
But because encryption cannot be done on server side for security
reasons, we are not able to handle that kind of io pattern if the file
is encrypted + compressed.
So just disable compression for all encrypted files.

Fixes: eb70ba19e9 ("EX-7331 sec: add support for encryption plus compression")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I84881fb1235f015d022751d4cce2d43a7231c2b4
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52746
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osc/osc_request.c
lustre/tests/sanity-sec.sh
lustre/utils/liblustreapi_layout.c