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 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
28 # real QA test starts here
31 _require_xfs_db_command timelimit
35 # Format filesystem without bigtime support and populate it
36 _scratch_mkfs > $seqres.full
37 echo classic xfs timelimits
38 _scratch_xfs_db -c 'timelimit --classic'
39 echo bigtime xfs timelimits
40 _scratch_xfs_db -c 'timelimit --bigtime'