View Single Post
  #4   (View Single Post)  
Old 21st December 2019
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 151
Default

Quote:
Originally Posted by victorvas View Post
What about OpenBSD's FFS, did they fix 2038 issue in it?
No, FFS (ufs) is not fixed. FFS2 (ufs2) is fixed but not FFS...

Linux now reports OpenBSD FFS (ufs) systems just like ext2 systems:

ufs filesystem being mounted at /obsd supports timestamps until 2038 (0x7fffffff)

(To get this message on Linux the disk needs to be mounted R/W which requires
the kernel to contain CONFIG_UFS_FS_WRITE=y )

Here is a OpenBSD script to show the issue with timestamps:
Code:
#! /bin/sh
set -x
touch -t 203801181234 y2k38-test1
ls -lT                y2k38-test1
touch -t 203901201234 y2k38-test2
ls -lT                y2k38-test2
__________________
When you see a good move, look for a better one.
--Lasker
Reply With Quote