Whamcloud - gitweb
LU-10499 pcc: add pcc_mode parameter for permission check 22/54422/4
authorQian Yingjin <qian@ddn.com>
Wed, 1 Sep 2021 13:45:47 +0000 (21:45 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 8 Aug 2024 00:15:16 +0000 (00:15 +0000)
commit72d9be33f333a084747ac59e73e700dc5bdbc358
tree8173950b36a22995d2034ad1419b78f2d67efa3c
parent08a3e19a0455867467f4ea42ebf3ce4a1aa8fef7
LU-10499 pcc: add pcc_mode parameter for permission check

This patch introduced a "llite.*.pcc_mode" parameter for PCC.
By this parameter, administrator can determine what file access
permissions should be allowed to bring files into PCC device for
caching.
This paramter is set with 0 by default.
Add sanity-pcc test_46 to verify it.

In this patch, it also ignores the EEXIST error when found that the
file had already attached into PCC during the manual attach.

EX-bug-id: EX-3741
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I1e006e4f723c1c177ae84c64ad32c6049a57110f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54422
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/lproc_llite.c
lustre/llite/pcc.c
lustre/llite/pcc.h
lustre/tests/sanity-pcc.sh