Whamcloud - gitweb
LU-14677 sec: migrate/extend/split on encrypted file 78/43878/5
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 28 May 2021 16:11:53 +0000 (18:11 +0200)
committerSebastien Buisson <sbuisson@ddn.com>
Tue, 6 Jul 2021 08:20:25 +0000 (10:20 +0200)
commitba48c1b022663c9b2fc4ea07567540b919844eb0
treea92b5eaba06edc9f981e45beff3a497afd2d4577
parent04b2da6180d3c8eda21f7ab36c676462be041b74
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
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