From 8ca0d23d1f1483212317f85d986b6a0e275108c5 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 17 Mar 1995 16:42:23 +0000 Subject: (diskfs_S_dir_lookup): Implement diskfs_synchronous. --- libdiskfs/dir-lookup.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libdiskfs/dir-lookup.c') diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index e4ec36c2..cee5f614 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -1,5 +1,5 @@ /* libdiskfs implementation of fs.defs:dir_lookup - Copyright (C) 1992, 1993, 1994 Free Software Foundation + Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -153,6 +153,11 @@ diskfs_S_dir_lookup (struct protid *dircred, mode &= ~(S_IFMT | S_ISPARE | S_ISVTX); mode |= S_IFREG; error = diskfs_create_node (dnp, path, mode, &np, dircred, ds); + if (diskfs_synchronous) + { + diskfs_update_file (dnp, 1); + diskfs_update_file (np, 1); + } newnode = 1; } else -- cgit v1.2.3