diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 17:13:05 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 17:13:05 +0000 |
commit | 45daf2c18f04e2829f8f2cc7f29cf0a59bf8d498 (patch) | |
tree | 5deea90e80fe56a059bcd3c4aa3138a3b7588bd3 /libdiskfs | |
parent | f7d4851cc37dba538bce130a90001b16425a8e08 (diff) |
(diskfs_node_rdwr): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/node-rdwr.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libdiskfs/node-rdwr.c b/libdiskfs/node-rdwr.c index 4ed6e157..4f4b461f 100644 --- a/libdiskfs/node-rdwr.c +++ b/libdiskfs/node-rdwr.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994 Free Software Foundation + Copyright (C) 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 @@ -56,6 +56,13 @@ diskfs_node_rdwr (struct node *np, } err = _diskfs_rdwr_internal (np, data, off, amt, dir, 0); + if (diskfs_synchronous) + { + if (dir) + diskfs_file_update (np, 1); + else + diskfs_node_update (np, 1); + } if (!err && amtread) *amtread = amt; |