2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Red Hat Inc. All Rights Reserved.
5 # FS QA Test No. xfs/020
7 # Test segfault issue when repairing large xfs.
9 # Regression test for xfsprogs commit
10 # 7f2d6b8 xfs_repair: avoid segfault if reporting progress early in repair
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
28 # get standard environment, filters and checks
32 # real QA test starts here
37 # Writing a 60t fs requires about 2GB of space, so make sure
38 # we have plenty of space to do that.
39 _require_fs_space $TEST_DIR 2500000
41 echo "Silence is golden"
43 fsfile=$TEST_DIR/fsfile.$seq
46 $MKFS_PROG -t xfs -d size=60t,file,name=$fsfile >/dev/null
47 $XFS_REPAIR_PROG -f -o ag_stride=32 -t 1 $fsfile >/dev/null 2>&1