summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-16 19:16:32 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-16 19:16:32 +0000
commit1da83cd874f945720b3ee399c6933e9bc5323361 (patch)
treeba3f0401c9b7436cac0ed6e012e92280d9aa15c1
parent4f7bffe7f8fef3ae9cc86a3fb4e995a02f863b22 (diff)
(diskfs_lookup): Always update atime after I/O.
-rw-r--r--libdiskfs/lookup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c
index 6baa78bb..058d0f69 100644
--- a/libdiskfs/lookup.c
+++ b/libdiskfs/lookup.c
@@ -99,6 +99,7 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type,
{
if (np)
*np = 0;
+ dp->dn_set_atime = 1;
return ENOENT;
}
else if (cached)
@@ -114,11 +115,13 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type,
diskfs_nput (cached);
if (ds)
diskfs_null_dirstat (ds);
+ dp->dn_set_atime = 1;
return 0;
}
}
err = diskfs_lookup_hard (dp, name, type, np, ds, cred);
+ dp->dn_set_atime = 1;
if (err && err != ENOENT)
return err;