From 24e212a8f20b6248f76ebb13829a3c6d194fdc78 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 15 Aug 2003 20:31:03 +0000 Subject: [PATCH] Fix timestamps being changed to "now". b=1763 r=phil --- lustre/llite/llite_lib.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 0202d40..8c17001 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -833,7 +833,13 @@ void ll_read_inode2(struct inode *inode, void *opaque) LASSERT(!lli->lli_smd); - /* core attributes from the MDS first */ + /* Core attributes from the MDS first. This is a new inode, and + * the VFS doesn't zero times in the core inode so we have to do + * it ourselves. They will be overwritten by either MDS or OST + * attributes - we just need to make sure they aren't newer. */ + LTIME_S(inode->i_mtime) = 0; + LTIME_S(inode->i_atime) = 0; + LTIME_S(inode->i_ctime) = 0; ll_update_inode(inode, md->body, md->lsm); /* OIDEBUG(inode); */ -- 1.8.3.1