From ba4b5dd60b12143574fda12616d3d6c1d66db10d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 17 Mar 1995 16:36:38 +0000 Subject: (diskfs_S_dir_mkdir): Implement diskfs_synchronous. --- libdiskfs/dir-mkdir.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libdiskfs/dir-mkdir.c') 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); -- cgit v1.2.3