]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: fix _require_btime for lazy filesystems
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 02:17:32 +0000 (18:17 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 16 Feb 2019 11:36:06 +0000 (19:36 +0800)
commit08174ee11083c380e72a64686c98d38b276ea826
tree6d30ac1e9486405d6b5ffbcf46a0a52db6c1e4d2
parent0c24aa077f6452710ba38c21e2b5dbded4951afe
common: fix _require_btime for lazy filesystems

Filesystems are not required to try to fill the statx btime field
unless the caller actually sets STATX_BTIME.  They're allowed to
volunteer that information "if it's cheap", but XFS doesn't
volunteer and there may be filesystems that support btime but not
cheaply.

Either way, we want to test btime on any filesystem that supports
it, cheaply or otherwise, so set STATX_BTIME when we're trying to
detect support for it.

[Eryu: fix _require_scratch_btime too]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc