Some filesystems do not support negative c/m/atime timestamps. And
for these filesystems, generic/258 will fail.
Since there's currently no way to check sb->s_time_min from
userspace, this patch adds a new common/rc function
_require_negative_timestamps() that will _notrun depending on the
$FSTYP variable.
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
return 0
}
+_require_negative_timestamps() {
+ case "$FSTYP" in
+ ceph)
+ _notrun "$FSTYP does not support negative timestamps"
+ ;;
+ esac
+}
+
init_rc
################################################################################
_supported_fs generic
_supported_os Linux
_require_test
+_require_negative_timestamps
TESTFILE=$TEST_DIR/timestamp-test.txt