From 45daf2c18f04e2829f8f2cc7f29cf0a59bf8d498 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 17 Mar 1995 17:13:05 +0000 Subject: (diskfs_node_rdwr): Implement diskfs_synchronous. --- libdiskfs/node-rdwr.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3