Whamcloud - gitweb
EX-2872 pcc: mtime rule for 'lctl pcc add'
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 20 Mar 2021 11:14:04 +0000 (05:14 -0600)
committerLi Xi <lixi@ddn.com>
Fri, 14 May 2021 08:00:26 +0000 (08:00 +0000)
commitd29a92f4d336fb25b35f71e134db910039f6e9dc
tree4486f0ca7066917e3c1df889512c170f96be6dfe
parent47ed1850a1e27edadd117faa213517d50670a552
EX-2872 pcc: mtime rule for 'lctl pcc add'

Add an "mtime>N" rule to allow skipping files for PCC-RO auto-attach
if they were created or modified more than N seconds ago.  Otherwise,
it may be that files are added to the PCC cache before they finished
writing, or if they will be modified again quickly after creation.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Ibb99bff5b483717ae6e5b83f82f1bcd86c3ebbe5
Reviewed-on: https://review.whamcloud.com/42122
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/namei.c
lustre/llite/pcc.c
lustre/llite/pcc.h
lustre/tests/sanity-pcc.sh