]> 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>
Mon, 9 Jun 2025 20:53:01 +0000 (16:53 -0400)
commit79b002675e0ff04f85d44b305b96bdf83e8fcc74
tree6e7e601b1493186ec0c0941da812165db2a24c37
parent592e1ac60618a682f5cbd4029e613639b14c03da
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>
(cherry picked from commit e13395876d63cebf008101b934ee9e5cdaae0150)
lib/ext2fs/ext2_fs.h
misc/fuse2fs.c