diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 16:37:45 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 16:37:45 +0000 |
commit | 4a760799f5337607e8d1e9a1e24b696279611204 (patch) | |
tree | a8f084b834c570478555b6db349f4361de5ce9d9 /libdiskfs | |
parent | ba4b5dd60b12143574fda12616d3d6c1d66db10d (diff) |
(diskfs_S_dir_mkfile): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-mkfile.c | 9 |
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; |