diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 16:36:38 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 16:36:38 +0000 |
commit | ba4b5dd60b12143574fda12616d3d6c1d66db10d (patch) | |
tree | 847cd1ec1026686aa18d484ffaf79f9c933658ff /libdiskfs | |
parent | 45a7a79ccdf0a7540d1b2c6779dbe7f39a9a216b (diff) |
(diskfs_S_dir_mkdir): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-mkdir.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libdiskfs/dir-mkdir.c b/libdiskfs/dir-mkdir.c index eee04b62..9648eafe 100644 --- a/libdiskfs/dir-mkdir.c +++ b/libdiskfs/dir-mkdir.c @@ -1,5 +1,5 @@ /* libdiskfs implementation of fs.defs: dir_mkdir - 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 @@ -57,6 +57,12 @@ diskfs_S_dir_mkdir (struct protid *dircred, error = diskfs_create_node (dnp, name, mode, &np, dircred, ds); + if (diskfs_synchronous) + { + diskfs_update_file (dnp, 1); + diskfs_update_file (np, 1); + } + if (!error) diskfs_nput (np); |