Whamcloud - gitweb
LU-10499 pcc: keep mtime unchange when attach file into PCC 24/54424/7
authorQian Yingjin <qian@ddn.com>
Tue, 14 Sep 2021 08:40:03 +0000 (16:40 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Aug 2024 21:57:48 +0000 (21:57 +0000)
commita2ae5cef0d7983fc5b8cec4341a2da660e9833ce
treefc92e2cc0cda3b52f8e6080ad70cb310443843b9
parentab5a2b63fb90b75ef07d25b347423e2db05286ef
LU-10499 pcc: keep mtime unchange when attach file into PCC

Modifying the timestamps of the files for the attach will cause
problems for the cache manager, since all files will appear new
at the time they are imported into the cache.
And that may also confuse applications if the file mtime has
changed just because of attach.

In this patch, it keeps the file mtime unchanged when attach it
into PCC.

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