Whamcloud - gitweb
LU-12275 sec: support truncate for encrypted files 94/37794/15
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 20 Feb 2020 14:45:07 +0000 (14:45 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 16 Jun 2020 15:28:29 +0000 (15:28 +0000)
commitadf46db962f657b74bd38db27e7b320aaee3cdd5
tree6a6ecb65fef1c39afe5d5a69698a788714171d3c
parent83d660436a164758fd4a29c1433d11c0f4591196
LU-12275 sec: support truncate for encrypted files

Truncation of encrypted files is not a trivial operation. The page
corresponding to the point where truncation occurs must be read,
decrypted, zeroed after truncation point, re-encrypted and then
written back.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I834f9372913d7051b1e0821515d3fea0873ffd78
Reviewed-on: https://review.whamcloud.com/37794
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/llite/llite_lib.c
lustre/llite/rw.c
lustre/llite/vvp_io.c
lustre/ofd/ofd_objects.c
lustre/osc/osc_request.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-zfs/osd_io.c