Whamcloud - gitweb
debugfs: fix printing post-2038 inode timestamps
authorTheodore Ts'o <tytso@mit.edu>
Thu, 18 Apr 2024 18:16:55 +0000 (14:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 18 Apr 2024 18:16:55 +0000 (14:16 -0400)
commit8b37e89f850610d51b7550ac34b8912b3000ced5
treee7d507183df87408dcae19abb3dccb6b8e543038
parent08079876e77b5f3fac81c093b33a297afb4dcb31
debugfs: fix printing post-2038 inode timestamps

Debugfs's stat command called ext2fs_inode_xtime_get() with a struct
inode * instead of a struct large_inode *.  As a result, printing
inode timestamps will be incorrect if the time value is larger than
2**32.

Fixes: ca8bc9240a00 ("Add post-2038 timestamp support to e2fsprogs")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c