Subject: Re: Call to inittodr missing from cd9660_mountroot (was Re: making bootable rescue CD?
To: Rob Quinn <rquinn+11121@sec.sprint.net>
From: Jason R Thorpe <thorpej@zembu.com>
List: netbsd-users
Date: 06/11/2001 12:51:55
On Mon, Jun 11, 2001 at 03:40:31PM -0400, Rob Quinn wrote:

 >   I finally had a few free minutes to track this down, and I found that
 > cd9660_vfsops.c:cd9660_mountroot() doesn't call the inittodr() function, unlike
 > ffs_mountroot. I was going to mimic the code in ffs that passed the timestamp
 > of / to inittodr(), but instead I settled for just passing in a zero.  I don't
 > like the idea of removable media modifying my clock. And I agree with the
 > comment in pr#1413 that a parameter of zero should disable the "WARNING:
 > preposterous time in file system" message.

Considring that that fs time in a cd9660 is going to be roughly when the
CD was created, and never updated, there's not really much reason to use
the fs time to seed the system time.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>