Whamcloud - gitweb
LU-10918 pcc: auto RO-PCC caching when O_RDONLY open files 46/38346/33
authorQian Yingjin <qian@ddn.com>
Wed, 22 Aug 2018 13:19:48 +0000 (21:19 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 Jun 2024 04:47:41 +0000 (04:47 +0000)
commita0b283dcd3846f5ab5a7ba9e2e83b7f5d6db40c1
treed3e3349d50e79fe192d074dd9a529dd1f768743d
parenta9445bc5d84dbf36b3de675b5f62da866d021dde
LU-10918 pcc: auto RO-PCC caching when O_RDONLY open files

During the file open() operation, if the file is being opened with
O_RDONLY flags, and the file matches the predefined rule, it will
be prefetched and attached into RO-PCC automatically.

Test-Parameters: clientcount=3 testlist=sanity-pcc,sanity-pcc,sanity-pcc
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Ib2c2ab51d67aed84eb7676c8df191faa33dfad39
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/38346
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
lustre/llite/file.c
lustre/llite/namei.c
lustre/llite/pcc.c
lustre/llite/pcc.h
lustre/tests/sanity-pcc.sh