On Sun, Jan 19, 2020 at 2:57 AM Deepa Dinamani deepa.kernel@gmail.com wrote:
Addition of fs-specific timestamp range checking was added in 188d20bcd1eb ("vfs: Add file timestamp range support").
Add a check for whether the kernel supports the limits check before running the associated test.
Based on an off-list discussion, we use a simpler interim approach until fsinfo syscall would provide fs timestamp limits info. This isn't perfect, but works for filesystems expiring in 2038.
Suggested-by: Amir Goldstein amir73il@gmail.com Signed-off-by: Deepa Dinamani deepa.kernel@gmail.com
Excellent! Thank you.
Eryu, you may add any of: Reviewed-by: Amir Goldstein amir73il@gmail.com Tested-by: Amir Goldstein amir73il@gmail.com
On kernel v5.4, ext2,ext4,xfs,btrfs (default mkfs) still pass. On Kernel v5.3, ext2,xfs are notrun for lack of kernel support (instead of failing), ext4 (256 bytes inodes) still fails and btrfs still pass, because bash overflows $(($s64max + 1 )) just the same as the kernel...
Thanks, Amir.