diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 16:42:23 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 16:42:23 +0000 |
commit | 8ca0d23d1f1483212317f85d986b6a0e275108c5 (patch) | |
tree | 02a7c607bc61764570ed2bb7c4feb5be765e55b5 /libdiskfs | |
parent | 4a760799f5337607e8d1e9a1e24b696279611204 (diff) |
(diskfs_S_dir_lookup): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-lookup.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 |