summaryrefslogtreecommitdiff
path: root/libdiskfs/rdwr-internal.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-16 21:53:12 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-16 21:53:12 +0000
commit37ea7ab6910543aeb8f31024fe6282814c9b0c78 (patch)
treec5c9e5c2756a55799c00dde0d877edc9e7f5df01 /libdiskfs/rdwr-internal.c
parentf1062d0cd70102ce772d2282ebbededccad65680 (diff)
Formerly rdwr-internal.c.~6~
Diffstat (limited to 'libdiskfs/rdwr-internal.c')
-rw-r--r--libdiskfs/rdwr-internal.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libdiskfs/rdwr-internal.c b/libdiskfs/rdwr-internal.c
index af25b963..cd3f3895 100644
--- a/libdiskfs/rdwr-internal.c
+++ b/libdiskfs/rdwr-internal.c
@@ -89,6 +89,14 @@ _diskfs_rdwr_internal (struct node *np,
}
assert (amt == 0 || err);
+ if (!diskfs_readonly)
+ {
+ if (dir)
+ np->dn_set_mtime = 1;
+ else
+ np->dn_set_atime = 1;
+ }
+
mach_port_deallocate (mach_task_self (), memobj);
return err;
}