[PATCH v2 00/11] xfs: widen timestamps to deal with y2038

Darrick J. Wong
2020-08-17T22:56:58Z

Hi all,

This series performs some refactoring of our timestamp and inode
encoding functions, then retrofits the timestamp union to handle
timestamps as a 64-bit nanosecond counter. Next, it adds bit shifting
to the non-root dquot timer fields to boost their effective size to 34
bits. These two changes enable correct time handling on XFS through the
year 2486.

v2: rebase to 5.9, having landed the quota refactoring

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything. Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=bigtime

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=bigtime

fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=bigtime
---
fs/xfs/libxfs/xfs_dquot_buf.c | 60 +++++++++++++++++
fs/xfs/libxfs/xfs_format.h | 139 +++++++++++++++++++++++++++++++++++++---
fs/xfs/libxfs/xfs_fs.h | 1
fs/xfs/libxfs/xfs_inode_buf.c | 132 ++++++++++++++++++--------------------
fs/xfs/libxfs/xfs_inode_buf.h | 7 +-
fs/xfs/libxfs/xfs_log_format.h | 21 ++++--
fs/xfs/libxfs/xfs_quota_defs.h | 9 ++-
fs/xfs/libxfs/xfs_sb.c | 2 +
fs/xfs/scrub/inode.c | 31 +++++++--
fs/xfs/scrub/quota.c | 8 ++
fs/xfs/xfs_dquot.c | 66 ++++++++++++++++---
fs/xfs/xfs_dquot.h | 4 +
fs/xfs/xfs_inode.c | 11 +++
fs/xfs/xfs_inode_item.c | 97 ++++++++++++++++++++++++++--
fs/xfs/xfs_inode_item.h | 3 +
fs/xfs/xfs_ioctl.c | 3 +
fs/xfs/xfs_ondisk.h | 30 ++++++++-
fs/xfs/xfs_qm.c | 2 +
fs/xfs/xfs_qm_syscalls.c | 18 +++--
fs/xfs/xfs_super.c | 14 +++-
20 files changed, 531 insertions(+), 127 deletions(-)