From: rahnds Date: Tue, 21 Jan 1997 21:34:18 +0000 (+0000) Subject: If mounting a CD filesystem as a root image, at least call inittodr. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d612168199c5a0e89a293650cc6557560a88eb3a;p=openbsd 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. --- 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); }