summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1997-01-21 21:34:19 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1997-01-21 21:34:19 +0000
commita335f218438db4a1e584fc5fa49c2379d384097d (patch)
tree7e5e6e6926f245e13135a2a223077561bf113efb /sys
parentc6f3c0deb8c7f1e29847c17deab2057646339373 (diff)
If mounting a CD filesystem as a root image, at least call inittodr.
Most filesystems have a last modified date that is supplied, however since that is not available on iso9660 could image creation time be used instead? Currently it supplies 0, the beginning of time as the parameter to inittodr. This is so that when installing from a CD image, the file or directory timestamps will be sane, not beginning of time.
Diffstat (limited to 'sys')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 0569053a066..a70e57f2dd0 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_vfsops.c,v 1.5 1996/12/25 10:21:40 deraadt Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.6 1997/01/21 21:34:18 rahnds Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.20 1996/02/09 21:32:08 christos Exp $ */
/*-
@@ -133,6 +133,7 @@ cd9660_mountroot()
bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size);
(void)cd9660_statfs(mp, &mp->mnt_stat, p);
vfs_unlock(mp);
+ inittodr(0); /* XXX - can we get the cd creation time here?? */
return (0);
}