Whamcloud - gitweb
LU-14677 sec: migrate/extend/split on encrypted file
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 28 May 2021 16:11:53 +0000 (18:11 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Sep 2021 21:28:33 +0000 (21:28 +0000)
commitfe8e272c07d873160e260ba159cd9c521e6d24e7
treed1247191d3cc47c6b25e9bc7eee575050b15fea7
parent819ae3a993456fccd9952a0aa84ca32946cca563
LU-14677 sec: migrate/extend/split on encrypted file

lfs migrate/extend/split makes use of volatile files to swap layouts.
When operation is carried out on an encrypted file, the volatile file
must be assigned the same encryption context as the original file, so
that data moved/copied to different OSTs is identical to the original
file's.
Also update sanity-sec test_52 to exercise these commands.

Lustre-change: https://review.whamcloud.com/43878
Lustre-commit: 09c558d16f0a80f436522edde89367c088fe2055

Change-Id: I3878b5e9e6d3738dfee0ce0f89a3646e6a7b976f
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-on: https://review.whamcloud.com/43879
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre/lustreapi.h
lustre/include/lustre_crypto.h
lustre/llite/llite_lib.c
lustre/llite/namei.c
lustre/tests/sanity-sec.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c