Whamcloud - gitweb
LU-16045 enc: force use of new enc xattr on new servers
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 25 Jul 2022 14:39:56 +0000 (16:39 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 4 Aug 2022 18:55:04 +0000 (18:55 +0000)
commit21786944973acdfe2391e1f3b7e97c652810b560
tree685414cfadf9a6f60e968fcd852cb1eefd9fa74b
parent0b4f876e0383c8eed8d63416a87a1a66ed6566e4
LU-16045 enc: force use of new enc xattr on new servers

When an older client uses encryption with a newer server, the client
wants to see the encryption context in security.c xattr. But
internally on server side, we force use of newer encryption.c xattr
for consistency purpose. When required, the encryption context is put
in the request to the client as usual, which interprets it as desired.

Fixes: ba50f9a977 ("LU-13717 sec: make client encryption compatible with ext4")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I667e123bdff912acc270666e8c74ebda6f0534e7
Reviewed-on: https://review.whamcloud.com/48034
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdd/mdd_internal.h