Whamcloud - gitweb
EX-3571 pcc: disable PCC for encrypted files
authorQian Yingjin <qian@ddn.com>
Fri, 30 Jul 2021 08:47:55 +0000 (16:47 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 6 Aug 2021 02:57:35 +0000 (02:57 +0000)
commita14fdef28021e82b02b9d52660477a26713a4ca0
tree907ecae50d061103f5efc13ea117f17f8c388ec9
parent09f8ff5e36656c75655dc11189b193d91bb377c2
EX-3571 pcc: disable PCC for encrypted files

When files are encrypted in Lustre using fscrypt, they should
normally not be accessible to users without the proper encyrption
key. However, if a user has then encryption key loadedwhen they
read a file, it may be decrypted in memory and saved to the PCC
backend in unencrypted form.

Due to the above reason, we just disable PCC caching for encrypted
files.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I6c363dcad7a6bc8520350c0295f6e221bec3abb0
Reviewed-on: https://review.whamcloud.com/44433
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/file.c
lustre/llite/pcc.c