2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) 2021 Oracle. All Rights Reserved.
7 # Check that the xfs_db timelimit command prints the ranges that we expect.
8 # This in combination with an xfs_ondisk.h build time check in the kernel
9 # ensures that the kernel agrees with userspace.
12 _begin_fstest auto quick bigtime
14 # Override the default cleanup function.
20 # Import common functions.
22 # real QA test starts here
25 _require_xfs_db_command timelimit
27 # Format filesystem without bigtime support and populate it
28 _scratch_mkfs > $seqres.full
29 echo classic xfs timelimits
30 _scratch_xfs_db -c 'timelimit --classic'
31 echo bigtime xfs timelimits
32 _scratch_xfs_db -c 'timelimit --bigtime'