summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)