]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: clamp timestamps that are being written to disk
authorDarrick J. Wong <djwong@kernel.org>
Thu, 24 Apr 2025 21:42:52 +0000 (14:42 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 May 2025 14:25:07 +0000 (10:25 -0400)
commite13395876d63cebf008101b934ee9e5cdaae0150
tree1fc9806b713d074a05892cd4ae7d3681771eda55
parentf2b51fa65536f7172de4252b56c7b16d222d8178
fuse2fs: clamp timestamps that are being written to disk

Clamp the timestamps that we write to disk to the minimum and maximum
values permitted given the ondisk format.  This fixes y2038 support, as
tested by generic/402.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553065069.1160461.14751120886781323020.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2_fs.h
misc/fuse2fs.c