2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved.
7 # Create an empty file and try to query the (nonexistant) CoW fork.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
28 # real QA test starts here
31 _require_xfs_io_command "bmap" "-c"
36 echo "Format and mount"
37 _scratch_mkfs > $seqres.full 2>&1
38 _scratch_mount >> $seqres.full 2>&1
40 testdir=$SCRATCH_MNT/test-$seq
43 echo "Create the original files"
47 echo "Dump extents after sync"
48 echo "Hole CoW extents:"
49 $XFS_IO_PROG -c "bmap -clpv" $testdir/file1 | _filter_scratch