Update the ctime of the directory too, since it changed. From Mark Davies
authorzoulasc <christos@zoulas.com>
Thu, 12 May 2016 14:21:55 +0000 (10:21 -0400)
committerzoulasc <christos@zoulas.com>
Thu, 12 May 2016 14:21:55 +0000 (10:21 -0400)
amd/autil.c

index 35d87089df0ca57ed0590afc701e3c5b2615b27b..f44a0e24938f4ce2518624f792873ac78e85a1cf 100644 (file)
@@ -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