generic/402: Make timestamp range check conditional
authorDeepa Dinamani <deepa.kernel@gmail.com>
Sun, 19 Jan 2020 00:57:44 +0000 (16:57 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 2 Feb 2020 13:17:29 +0000 (21:17 +0800)
commit4bfaca4ef87e625a0d3acbd354a32b258a0d20be
treeb07c312b6c6a2b8308443fb6fd5ee9dd11e7cf1d
parent699ebfad5db5e2258208314bb8ba2f03a6b66bde
generic/402: Make timestamp range check conditional

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>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc
tests/generic/402