NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/48449: y2038 shortcomings of ffsv1
The following reply was made to PR kern/48449; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/48449: y2038 shortcomings of ffsv1
Date: Thu, 10 Jun 2021 05:26:00 +0000
On Sun, Dec 15, 2013 at 07:25:00AM +0000, dholland%NetBSD.org@localhost wrote:
> >Fix:
>
> When 32-bit times are read in, instead of just sign-extending them as
> currently appears to happen, paste on the top half of the current
> 64-bit time and then possibly adjust up or down by 0x100000000.
Or, much more simply, store a 64-bit epoch in the superblock (this
lets you pick it at newfs time) and add the 32-bit times to it. This
requires adding a superblock field but we can probably afford that.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index