blob: eaee590ebd0391d19ef3e1f088ea830b150c6ea7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2021 Oracle. All Rights Reserved.
#
# FS QA Test No. 159
#
# Check that the xfs_db timelimit command prints the ranges that we expect.
# This in combination with an xfs_ondisk.h build time check in the kernel
# ensures that the kernel agrees with userspace.
. ./common/preamble
_begin_fstest auto quick bigtime
# Override the default cleanup function.
_cleanup()
{
cd /
}
# Import common functions.
# real QA test starts here
_supported_fs xfs
_require_scratch
_require_xfs_db_command timelimit
# Format filesystem without bigtime support and populate it
_scratch_mkfs > $seqres.full
echo classic xfs timelimits
_scratch_xfs_db -c 'timelimit --classic'
echo bigtime xfs timelimits
_scratch_xfs_db -c 'timelimit --bigtime'
# success, all done
status=0
exit
|