Whamcloud - gitweb
LU-10918 pcc: auto RO-PCC caching when O_RDONLY open files 46/38346/9
authorQian Yingjin <qian@ddn.com>
Wed, 22 Aug 2018 13:19:48 +0000 (21:19 +0800)
committerQian Yingjin <qian@ddn.com>
Wed, 26 Aug 2020 02:20:09 +0000 (10:20 +0800)
commit44c0e007283360e28b18be24d01abdaa237b2984
treeaf762c9f76119d89ae1c40d98242b356206589dc
parent00f286ca4affaed536eee776b673344f5c9b669e
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
lustre/llite/namei.c
lustre/llite/pcc.c
lustre/llite/pcc.h
lustre/tests/sanity-pcc.sh