]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: widen ondisk inode timestamps to deal with y2038+
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Nov 2020 01:08:14 +0000 (20:08 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 12 Nov 2020 01:08:14 +0000 (20:08 -0500)
commite7e3beb95efd751f227a0ced4c83fc5b88582e2e
treee65eb507bd935d8e106f2ad197e7521a356a301a
parentfc3e21db4a30d0d81158938cabba0fb59fc57ad8
xfs: widen ondisk inode timestamps to deal with y2038+

Source kernel commit: f93e5436f0ee5a85eaa3a86d2614d215873fb18b

Redesign the ondisk inode timestamps to be a simple unsigned 64-bit
counter of nanoseconds since 14 Dec 1901 (i.e. the minimum time in the
32-bit unix time epoch).  This enables us to handle dates up to 2486,
which solves the y2038 problem.

sandeen: update xfs_flags2diflags2() as well, to match

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Gao Xiang <hsiangkao@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_inode.h
libxfs/util.c
libxfs/xfs_format.h
libxfs/xfs_fs.h
libxfs/xfs_ialloc.c
libxfs/xfs_inode_buf.c
libxfs/xfs_inode_buf.h
libxfs/xfs_sb.c
libxfs/xfs_shared.h
libxfs/xfs_trans_inode.c