Re: [RFC 06/32] isofs: fix timestamps beyond 2027

From
Geert Uytterhoeven <geert@linux-m68k.org>
Date
2014-05-31 07:59:56
Also in
linux-fsdevel, lkml
Reply to
Arnd Bergmann, 2014-05-30
On Fri, May 30, 2014 at 10:01 PM, Arnd Bergmann [off-list ref] wrote:
isofs uses a 'char' variable to load the number of years since
1900 for an inode timestamp. On architectures that use a signed
char type by default, this results in an invalid date for
anything beyond 2027.

This adds a cast to 'u8' for the year number, which should extend
the shelf life of the file system until 2155.
Oops, the CD archive of my scanned Napoleon manuscripts no longer has the
right file date? ;-)

Are there any practical uses of representating dates between 1772 and 1900
on CD/DVD?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Thread (101 messages) 101 messages, 17 authors, last reply 2014-06-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help