[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1401708941.6065.51.camel@montana.filmlight.ltd.uk>
Date: Mon, 02 Jun 2014 12:35:41 +0100
From: Roger Willcocks <roger@...mlight.ltd.uk>
To: Dave Chinner <david@...morbit.com>
Cc: Arnd Bergmann <arnd@...db.de>, linux-arch@...r.kernel.org,
linux-kernel@...r.kernel.org, lftan@...era.com, hch@...radead.org,
john.stultz@...aro.org, "H. Peter Anvin" <hpa@...or.com>,
linux-fsdevel@...r.kernel.org, geert@...ux-m68k.org,
tglx@...utronix.de, xfs@....sgi.com, joseph@...esourcery.com
Subject: Re: [RFC 11/32] xfs: convert to struct inode_time
On Mon, 2014-06-02 at 10:28 +1000, Dave Chinner wrote:
>
> The 32 bit second counters in timestamps are too small to represent
> time beyond the unix epoch (jan 2038) correctly. Extend the on-disk
> format for a timestamp to include an 8-bit epoch counter so that we
> can extend time for up to 255 Unix epochs. This should be good for
> representing timestamps from 1970 to somewhere around 19,000 A.D....
>
I assume you're using an 'epoch' variable and not simply using the
padding byte as an eight-bit prefix to the existing 32-bit counter
because the existing counter is signed ?
For long term sanity it might make more sense for the eight-bit value to
be a simple (sign-extended) prefix from 1970.
So if the feature bit is set it's a 40-bit signed time, which is good
for 1970 +/- 17400 years or so.
--
Roger
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists