summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-17 16:37:45 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-17 16:37:45 +0000
commit4a760799f5337607e8d1e9a1e24b696279611204 (patch)
treea8f084b834c570478555b6db349f4361de5ce9d9 /libdiskfs
parentba4b5dd60b12143574fda12616d3d6c1d66db10d (diff)
(diskfs_S_dir_mkfile): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/dir-mkfile.c9
1 files changed, 8 insertions, 1 deletions
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;