summaryrefslogtreecommitdiff
path: root/libdiskfs/io-read.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-17 17:04:17 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-17 17:04:17 +0000
commit4f908035b012064b60e330175061523c9995294a (patch)
tree75dbd4f582399eaf6fe7eeb276158ca4ffb9d0cf /libdiskfs/io-read.c
parent8769fd8a6473b061e99d7dfd5b860fb040761094 (diff)
(diskfs_S_io_read): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs/io-read.c')
-rw-r--r--libdiskfs/io-read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/io-read.c b/libdiskfs/io-read.c
index 041cbc29..9c7a5259 100644
--- a/libdiskfs/io-read.c
+++ b/libdiskfs/io-read.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
@@ -65,6 +65,8 @@ diskfs_S_io_read (struct protid *cred,
cred->po->openstat & O_NOATIME);
else
err = 0;
+ if (diskfs_synchronous)
+ diskfs_node_update (np, 1); /* atime! */
if (offset == -1 && !err)
cred->po->filepointer += *datalen;
if (err && ourbuf)