2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Fujitsu. All Rights Reserved.
5 # FS QA Test No. btrfs/032
7 # Regression test for transaction abortion when remounting RW to RO
8 # with flushoncommit option enabled.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
23 trap "_cleanup ; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
29 # real QA test starts here
33 _scratch_mkfs > /dev/null 2>&1
34 _scratch_mount "-o flushoncommit"
36 $XFS_IO_PROG -f -c "pwrite 0 10M" "$SCRATCH_MNT/tmpfile" | _filter_xfs_io
38 _scratch_mount "-o remount,ro"