From 95d4c9c00005d31f09fc8ab24480141dc6a48f1a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 Mar 1995 02:07:13 +0000 Subject: (diskfs_S_io_stat): Implement diskfs_synchronous. --- libdiskfs/io-stat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c index ac076b2c..dbf99ca5 100644 --- a/libdiskfs/io-stat.c +++ b/libdiskfs/io-stat.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 @@ -32,7 +32,10 @@ diskfs_S_io_stat (struct protid *cred, np = cred->po->np; mutex_lock (&np->lock); ioserver_get_conch (&np->conch); - diskfs_set_node_times (np); + if (diskfs_syncronous) + diskfs_node_update (np, 1); + else + diskfs_set_node_times (np); bcopy (&np->dn_stat, statbuf, sizeof (struct stat)); mutex_unlock (&np->lock); return 0; -- cgit v1.2.3