diff options
-rw-r--r-- | libdiskfs/lookup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c index 058d0f69..0acad1d0 100644 --- a/libdiskfs/lookup.c +++ b/libdiskfs/lookup.c @@ -121,7 +121,8 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type, } err = diskfs_lookup_hard (dp, name, type, np, ds, cred); - dp->dn_set_atime = 1; + if (!diskfs_readonly) + dp->dn_set_atime = 1; if (err && err != ENOENT) return err; |