From 4a760799f5337607e8d1e9a1e24b696279611204 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 17 Mar 1995 16:37:45 +0000 Subject: (diskfs_S_dir_mkfile): Implement diskfs_synchronous. --- libdiskfs/dir-mkfile.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libdiskfs/dir-mkfile.c') diff --git a/libdiskfs/dir-mkfile.c b/libdiskfs/dir-mkfile.c index 734a7e0c..e9c314b8 100644 --- a/libdiskfs/dir-mkfile.c +++ b/libdiskfs/dir-mkfile.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 1995 Free Software Foundation This file is part of the GNU Hurd. @@ -56,6 +56,13 @@ diskfs_S_dir_mkfile (struct protid *cred, mode |= S_IFREG; err = diskfs_create_node (dnp, 0, mode, &np, cred, 0); mutex_unlock (&dnp->lock); + + if (diskfs_synchronous) + { + diskfs_update_file (dnp, 1); + diskfs_update_file (np, 1); + } + if (err) return err; -- cgit v1.2.3