summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-16 19:21:51 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-16 19:21:51 +0000
commit90ff1247305728b120b283e5a0e186c397a9b4e5 (patch)
tree580e496fcb30eb519240dbc6d560e3a765338929 /libdiskfs
parentbc5753970d69cbe76b9c2ee7087ef23817f0731e (diff)
(diskfs_lookup):
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/lookup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c
index 0acad1d0..4408b3ea 100644
--- a/libdiskfs/lookup.c
+++ b/libdiskfs/lookup.c
@@ -99,7 +99,8 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type,
{
if (np)
*np = 0;
- dp->dn_set_atime = 1;
+ if (!diskfs_readonly)
+ dp->dn_set_atime = 1;
return ENOENT;
}
else if (cached)
@@ -115,7 +116,8 @@ 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;
+ if (!diskfs_readonly)
+ dp->dn_set_atime = 1;
return 0;
}
}