From 28020cbbb79cdf0a20fa21051f95acae2e1b1d48 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 17 Mar 1995 19:15:32 +0000 Subject: (diskfs_rename_dir): If we are synchronous, update the one node our caller doesn't have access to. --- libdiskfs/dir-renamed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c index cdca258c..63cb5057 100644 --- a/libdiskfs/dir-renamed.c +++ b/libdiskfs/dir-renamed.c @@ -177,8 +177,8 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname, tnp->dn_set_ctime = 1; } diskfs_clear_directory (tnp, tdp, tocred); - /* diskfs_clear_directory will sync both tnp and tdp for us - if we are synchronous. */ + if (diskfs_synchronous) + diskfs_file_update (tnp, 1); } else { -- cgit v1.2.3