fsx/fsstress: round blocksize properly
[xfstests-dev.git] / tests / btrfs / 082
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Fujitsu.  All Rights Reserved.
4 #
5 # FS QA Test No. btrfs/082
6 #
7 # Regression test for a btrfs issue of resizing 'thread_pool' when
8 # remount the fs.
9 #
10 # This regression was introduced by the following linux kernel commit:
11 #     btrfs: Added btrfs_workqueue_struct implemented ordered
12 #     execution based on kernel workqueue
13 #     08a9ff3264181986d1d692a4e6fce3669700c9f8
14 # And it was fixed by the following linux kernel commit:
15 #     btrfs: fix crash in remount(thread_pool=) case
16 #     800ee2247f483b6d05ed47ef3bbc90b56451746c
17 #
18 seq=`basename $0`
19 seqres=$RESULT_DIR/$seq
20 echo "QA output created by $seq"
21
22 here=`pwd`
23 tmp=/tmp/$$
24 status=1        # failure is the default!
25
26 _cleanup()
27 {
28     rm -f $tmp.*
29 }
30
31 trap "_cleanup ; exit \$status" 0 1 2 3 15
32
33 # get standard environment, filters and checks
34 . ./common/rc
35 . ./common/filter
36
37 # real QA test starts here
38 _supported_fs btrfs
39 _require_scratch
40
41 _scratch_mkfs >$seqres.full 2>&1
42
43 _scratch_mount "-o thread_pool=6"
44 _scratch_mount "-o remount,thread_pool=10"
45
46 echo "Silence is golden"
47 status=0
48 exit