Whamcloud - gitweb
EX-5427 sec: fix pcc detach of encrypted file
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 24 Jun 2022 16:08:22 +0000 (18:08 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 29 Jun 2022 19:09:40 +0000 (19:09 +0000)
commitbb088999923e5d2bed8605d48908fe79f14fc8b2
treec0c07565a0d941cc92db54f8815d49a06166aa3e
parentdd5df5f19cf59e9c1c3ffa3458e2d510197b517e
EX-5427 sec: fix pcc detach of encrypted file

In case of 'lfs pcc detach' of an encrypted file, its page cache
pages must be trashed as they might contain cipher text because
of the pcc file being detached.

Improve sanity-pcc test_21j to exercise this use case.

Fixes: 393697cac0 ("EX-4182 sec: support of PCC-RO for encrypted files")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ice13c5b4205c074d9b46e2175d18f8743dbe9c58
Reviewed-on: https://review.whamcloud.com/47766
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/pcc.c
lustre/tests/sanity-pcc.sh