From ad416c8656c2dff6f1bcffee8517284de94c9d92 Mon Sep 17 00:00:00 2001 From: zoulasc Date: Thu, 12 May 2016 10:21:55 -0400 Subject: [PATCH] Update the ctime of the directory too, since it changed. From Mark Davies --- amd/autil.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amd/autil.c b/amd/autil.c index 35d87089..f44a0e24 100644 --- a/amd/autil.c +++ b/amd/autil.c @@ -183,6 +183,7 @@ forcibly_timeout_mp(am_node *mp) * more. */ clocktime(&mp->am_parent->am_fattr.na_mtime); + mp->am_parent->am_fattr.na_ctime = mp->am_parent->am_fattr.na_mtime; reschedule_timeout_mp(); } } @@ -312,8 +313,10 @@ am_mounted(am_node *mp) /* * Update mtime of parent node (copying "struct nfstime" in '=' below) */ - if (mp->am_parent && mp->am_parent->am_al->al_mnt) + if (mp->am_parent && mp->am_parent->am_al->al_mnt) { mp->am_parent->am_fattr.na_mtime = mp->am_fattr.na_mtime; + mp->am_parent->am_fattr.na_ctime = mp->am_fattr.na_mtime; + } /* * This is ugly, but essentially unavoidable -- 2.43.0