diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 01:53:19 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 01:53:19 +0000 |
commit | acc0e47f4704e2192b1e58f3eff777a3343c9945 (patch) | |
tree | 5bd10e1a4d12069f2a231dfc0badb5c62a720389 | |
parent | d08bddcdd2caedb1a7c8fc6102ec6fc606104c43 (diff) |
(diskfs_S_dir_rmdir): Implement diskfs_synchronous.
-rw-r--r-- | libdiskfs/dir-rmdir.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libdiskfs/dir-rmdir.c b/libdiskfs/dir-rmdir.c index ebfdbb38..5e3407d8 100644 --- a/libdiskfs/dir-rmdir.c +++ b/libdiskfs/dir-rmdir.c @@ -1,5 +1,5 @@ /* libdsikfs implementation of fs.defs: dir_rmdir - 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 @@ -68,11 +68,15 @@ diskfs_S_dir_rmdir (struct protid *dircred, } error = diskfs_dirremove (dnp, ds); + if (diskfs_synchronous) + diskfs_node_update (dnp, 1); if (!error) { np->dn_stat.st_nlink--; np->dn_set_ctime = 1; + if (diskfs_synchronous) + diskfs_node_update (np, 1); } if (!error) |