generic/258: check filesystem support for negative timestamps
authorLuis Henriques <lhenriques@suse.com>
Wed, 4 Mar 2020 16:11:20 +0000 (16:11 +0000)
committerEryu Guan <guaneryu@gmail.com>
Mon, 6 Apr 2020 12:21:32 +0000 (20:21 +0800)
commitb2d552fbca6c9af18f603b845a688609479ebb3d
treef766806a1e6160425f0a9ec0080402712a5c16bc
parentb2faf2047019c6290a4373ae214738f4fbfbf2f1
generic/258: check filesystem support for negative timestamps

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>
common/rc
tests/generic/258