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 _begin_fstest auto quick clone
12 # Import common functions.
15 # real QA test starts here
18 _require_xfs_io_command "bmap" "-c"
21 echo "Format and mount"
22 _scratch_mkfs > $seqres.full 2>&1
23 _scratch_mount >> $seqres.full 2>&1
25 testdir=$SCRATCH_MNT/test-$seq
28 echo "Create the original files"
32 echo "Dump extents after sync"
33 echo "Hole CoW extents:"
34 $XFS_IO_PROG -c "bmap -clpv" $testdir/file1 | _filter_scratch