Whamcloud - gitweb
LU-14677 sec: migrate/extend/split on encrypted file 78/43878/6
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 28 May 2021 16:11:53 +0000 (18:11 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Jul 2021 18:47:17 +0000 (18:47 +0000)
commit09c558d16f0a80f436522edde89367c088fe2055
tree82fde066945b5572b368c78102629f25daec2ccd
parent9a23a5de12164f9d50db9e602f085bb0c3cc9d8a
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.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I3878b5e9e6d3738dfee0ce0f89a3646e6a7b976f
Reviewed-on: https://review.whamcloud.com/43878
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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