summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-09 02:07:13 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-09 02:07:13 +0000
commit95d4c9c00005d31f09fc8ab24480141dc6a48f1a (patch)
treed9158f32bcbc22493c89106c17462c1b0ad7416e /libdiskfs
parent22aa1570937d2ce71a830445cc341c9129277bc5 (diff)
(diskfs_S_io_stat): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/io-stat.c7
1 files changed, 5 insertions, 2 deletions
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;