. ./common/preamble
_begin_fstest auto quick subvol snapshot
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto snapshot
-# Import common functions.
. ./common/filter
_supported_fs btrfs
wait $!
}
-##################### real QA test starts here###################################
# sv1 - is just a name nothing spl
firstvol="$SCRATCH_MNT/sv1"
$BTRFS_UTIL_PROG subvolume create $firstvol > /dev/null || _fail "btrfs subvolume create $firstvol failed"
fi
}
-# Import common functions.
. ./common/filter
_supported_fs btrfs
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_no_large_scratch_dev
_check_scratch_fs
}
-# Import common functions.
. ./common/filter
. ./common/defrag
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick volume
-# Import common functions.
. ./common/filter.btrfs
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_scratch_dev_pool
rm -fr $send_files_dir
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick subvol
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_scratch_unmount > /dev/null 2>&1
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch_nocheck
_require_scratch_dev_pool 5
. ./common/preamble
_begin_fstest auto convert
-# Import common functions.
. ./common/filter.btrfs
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_nocheck
. ./common/preamble
_begin_fstest auto quick balance prealloc
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc"
done
}
-#get standard environment, filters and checks
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick snapshot remount
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
tmp=`mktemp -d`
tmp_dir=send_temp_$seq
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
. ./common/preamble
_begin_fstest auto quick qgroup
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_scratch_qgroup
. ./common/preamble
_begin_fstest auto quick subvol
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -f $fs_img1 $fs_img2 $fs_img3
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_loop
. ./common/preamble
_begin_fstest auto quick balance defrag
-# Import common functions.
. ./common/filter
-# real QA test starts here
run_test()
{
_run_btrfs_balance_start $SCRATCH_MNT >> $seqres.full &
. ./common/preamble
_begin_fstest auto qgroup limit
-# Import common functions.
. ./common/filter
_supported_fs btrfs
. ./common/preamble
_begin_fstest auto
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch_dev_pool 4
# Zoned btrfs only supports SINGLE profile
. ./common/preamble
_begin_fstest auto quick compress
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_btrfs_no_nodatacow
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc"
. ./common/preamble
_begin_fstest auto quick compress prealloc
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc"
. ./common/preamble
_begin_fstest auto replace volume scrub
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
. ./common/preamble
_begin_fstest auto qgroup balance
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_btrfs_qgroup_report
. ./common/preamble
_begin_fstest auto quick clone
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_test
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
. ./common/preamble
_begin_fstest auto quick subvol clone
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_test
. ./common/preamble
_begin_fstest auto quick remount
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick send snapshot
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc"
. ./common/preamble
_begin_fstest auto quick clone
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
done
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc"
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -fr $restore_dir
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick qgroup limit
-# Import common functions.
. ./common/filter
_supported_fs btrfs
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick snapshot attr
-# Import common functions.
. ./common/filter
. ./common/attr
-# real QA test starts here
-
_supported_fs btrfs
_require_attrs
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest quick balance auto
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch_swapfile
_require_scratch_dev_pool 3
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
. ./common/attr
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
. ./common/attr
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
. ./common/preamble
_begin_fstest auto quick
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_qgroup_rescan
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "-T"
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
fi
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# we check scratch dev after each loop
_require_scratch_nocheck
$UMOUNT_PROG $subvol_mnt >/dev/null 2>&1
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
. ./common/defrag
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -fr $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -fr $tmp.* $tmp
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
# Since xfs_io's fiemap always use SYNC flag and can't be unset,
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch_nocheck
. ./common/preamble
_begin_fstest auto quick clone
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
. ./common/preamble
_begin_fstest auto quick remount
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
. ./common/preamble
_begin_fstest auto quick clone
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
. ./common/preamble
_begin_fstest auto quick metadata
-# Import common functions.
. ./common/filter
. ./common/fail_make_request
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fail_make_request
. ./common/preamble
_begin_fstest auto quick subvol
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick metadata
-# Import common functions.
. ./common/filter.btrfs
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_scratch_dev_pool
. ./common/preamble
_begin_fstest auto quick qgroup
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_cp_reflink
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_fssum
. ./common/preamble
_begin_fstest auto quick clone
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
. ./common/preamble
_begin_fstest auto quick clone
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
. ./common/preamble
_begin_fstest auto quick qgroup limit
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_btrfs_qgroup_report
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
. ./common/dmerror
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
. ./common/dmerror
. ./common/preamble
_begin_fstest auto quick metadata enospc balance
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick clone compress
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
. ./common/preamble
_begin_fstest auto qgroup
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_btrfs_qgroup_report
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick clone compress
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
. ./common/preamble
_begin_fstest auto quick prealloc
-# Import common functions.
. ./common/filter
. ./common/defrag
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc"
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cp_reflink
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cp_reflink
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick clone prealloc compress
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
. ./common/preamble
_begin_fstest auto quick compress clone
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cloner
. ./common/preamble
_begin_fstest auto qgroup
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto qgroup
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick metadata
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
# Writing non-contiguous data directly to the device
tmp=`mktemp -d`
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_cp_reflink
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
. ./common/preamble
_begin_fstest auto quick snapshot qgroup
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick snapshot qgroup
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_btrfs_qgroup_report
. ./common/preamble
_begin_fstest auto quick qgroup balance
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_btrfs_qgroup_report
_btrfs_rescan_devices
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch_dev_pool 2
_test_unmount
_btrfs_rescan_devices
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch_dev_pool 3
_test_unmount
. ./common/preamble
_begin_fstest auto quick qgroup limit
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_btrfs_qgroup_report
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick clone send
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_scratch_reflink
. ./common/preamble
_begin_fstest auto quick
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_btrfs_command inspect-internal dump-super
wait
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto convert
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_nocheck
# ext4 does not support zoned block device
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/punch
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto compress
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_btrfs_command property
. ./common/preamble
_begin_fstest auto qgroup limit
-# Import common functions.
. ./common/filter
_supported_fs btrfs
. ./common/preamble
_begin_fstest auto quick read_repair fiemap
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 2
# No data checksums for NOCOW case, so can't detect corruption and repair data.
. ./common/preamble
_begin_fstest auto quick read_repair
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
# No data checksums for NOCOW case, so can't detect corruption and repair data.
_require_btrfs_no_nodatacow
. ./common/preamble
_begin_fstest auto quick read_repair
-# Import common functions.
. ./common/filter
. ./common/dmdust
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 2
_require_dm_target dust
. ./common/preamble
_begin_fstest auto quick read_repair
-# Import common functions.
. ./common/filter
. ./common/dmdust
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 2
_require_dm_target dust
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
_dmerror_cleanup
}
-# Import common functions.
. ./common/filter
. ./common/dmerror
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_scratch_dev_pool
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick rw scrub
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_scratch_dev_pool 4
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick dangerous read_repair compress
-# Import common functions.
. ./common/filter
. ./common/fail_make_request
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_fail_make_request
. ./common/preamble
_begin_fstest auto quick volume
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_scratch_dev_pool 3
. ./common/preamble
_begin_fstest auto quick metadata qgroup send
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick qgroup limit preallocrw
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_btrfs_qgroup_report
. ./common/preamble
_begin_fstest auto quick
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_command $PYTHON3_PROG python3
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick trim balance
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_fstrim
. ./common/preamble
_begin_fstest auto quick raid read_repair
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
# No data checksums for NOCOW case, so can't detect corruption and repair data.
_require_btrfs_no_nodatacow
. ./common/preamble
_begin_fstest auto quick raid scrub
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
# No data checksums for NOCOW case, so can't detect corruption and repair data.
_require_btrfs_no_nodatacow
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
_dmerror_cleanup
}
-# Import common functions.
. ./common/filter
. ./common/dmerror
-# real QA test starts here
_supported_fs btrfs
_require_scratch_dev_pool
. ./common/preamble
_begin_fstest auto quick volume seed
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_command "$BTRFS_TUNE_PROG" btrfstune
_require_scratch_dev_pool 2
. ./common/preamble
_begin_fstest auto quick volume seed
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_command "$BTRFS_TUNE_PROG" btrfstune
_require_scratch_dev_pool 3
_btrfs_rescan_devices
}
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_command "$BTRFS_TUNE_PROG" btrfstune
_require_scratch_dev_pool 3
_btrfs_rescan_devices
}
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_btrfs_forget_or_module_loadable
_require_scratch_dev_pool 2
rm -r $1 >> $seqres.full 2>&1
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_btrfs_fs_feature "rmdir_subvol"
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
. ./common/preamble
_begin_fstest auto quick replace volume remount compress
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 2
_require_scratch_dev_pool_equal_size
rm -fr $send_files_dir
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -fr $send_files_dir
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick snapshot prealloc
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc" "-k"
. ./common/preamble
_begin_fstest auto quick qgroup
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmlogwrites
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_log_writes
. ./common/preamble
_begin_fstest auto quick swap volume
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 3
_require_scratch_swapfile
. ./common/filter
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_swapfile
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto qgroup dangerous
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick qgroup limit prealloc
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_xfs_io_command falloc
. ./common/preamble
_begin_fstest auto quick balance
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_btrfs_command inspect-internal dump-super
. ./common/preamble
_begin_fstest auto quick balance
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick clone compress punch
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_scratch_reflink
_require_xfs_io_command "fpunch"
. ./common/preamble
_begin_fstest auto quick volume
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_scratch_dev_pool 2
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch_dev_pool 2
_scratch_dev_pool_get 2
rm -fr $send_files_dir
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto send dedupe clone balance
-# Import common functions.
. ./common/attr
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_scratch_dedupe
_require_attrs
rm -fr $send_files_dir
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -fr $send_files_dir
}
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_fssum
_require_test
. ./common/preamble
_begin_fstest auto quick replay balance qgroup recoveryloop
-# Import common functions.
. ./common/filter
. ./common/dmlogwrites
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
# and we need extra device as log device
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch_dedupe
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/attr
. ./common/dmlogwrites
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_command "$KILLALL_PROG" killall
. ./common/preamble
_begin_fstest auto quick qgroup enospc limit prealloc
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_xfs_io_command falloc
. ./common/preamble
_begin_fstest auto volume
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 2
_scratch_dev_pool_get 2
. ./common/preamble
_begin_fstest auto volume balance scrub
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 4
# Zoned btrfs only supports SINGLE profile
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmthin
. ./common/dmlogwrites
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
# Use thin device as replay device, which requires $SCRATCH_DEV
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick volume
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_command "$WIPEFS_PROG" wipefs
_require_scratch
rm -rf $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_fixed_by_kernel_commit 6b7faadd985c \
"btrfs: Ensure we trim ranges across block group boundary"
rm -fr $send_files_dir
}
-# Import common functions.
. ./common/filter
. ./common/reflink
. ./common/punch
-# real QA test starts here
_supported_fs btrfs
_require_fssum
_require_test
rm -f $tmp.*
}
-# Import common functions.
. ./common/attr
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
rm -fr $send_files_dir
}
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch_reflink
. ./common/preamble
_begin_fstest auto quick punch
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "fpunch"
. ./common/preamble
_begin_fstest auto quick clone compress prealloc
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_scratch_reflink
_require_xfs_io_command "falloc" "-k"
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmlogwrites
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto rw raid
-# Import common functions.
. ./common/filter
_supported_fs btrfs
. ./common/preamble
_begin_fstest auto quick subvol
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_btrfs_command subvolume delete --subvolid
rm -f $tmp.*
}
-# Import common functions.
. ./common/attr
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
. ./common/preamble
_begin_fstest auto quick qgroup snapshot
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc" "-k"
wait
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_command "$KILLALL_PROG" killall
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_xfs_io_command pwrite -D
_register_cleanup "cleanup"
-# Import common functions.
. ./common/filter
_supported_fs btrfs
_scratch_unmount
}
-# real QA test starts here
-
echo "Test full send + file without capabilities, then incremental send bringing a new capability"
full_nocap_inc_withcap_send
. ./common/preamble
_begin_fstest auto quick read_repair
-# Import common functions.
. ./common/filter
-# real QA test starts here
get_physical()
{
$BTRFS_UTIL_PROG inspect-internal dump-tree -t 3 $SCRATCH_DEV | \
$AWK_PROG "(\$1 ~ /stripe/ && \$3 ~ /devid/ && \$2 ~ /0/) { print \$6 }"
}
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
# No data checksums for NOCOW case, so can't detect corruption and repair data.
. ./common/preamble
_begin_fstest auto quick seed
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_fixed_by_kernel_commit 4faf55b03823 \
"btrfs: don't traverse into the seed devices in show_devname"
. ./common/preamble
_begin_fstest auto quick trim dangerous
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_size $((5 * 1024 * 1024)) #kB
_require_fstrim
. ./common/preamble
_begin_fstest auto quick volume
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_fixed_by_kernel_commit 124604eb50f8 \
"btrfs: init device stats for seed devices"
_btrfs_rescan_devices
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
loop_mnt1=$TEST_DIR/$seq/mnt1
_register_cleanup "cleanup"
-# Import common functions.
. ./common/filter
_supported_fs btrfs
echo $shown_opts | grep -q clear_cache && enable_clear_cache_shown=true
_scratch_unmount; }
-# real QA test starts here
_scratch_mkfs >/dev/null
# This test checks mount options, so having random MOUNT_OPTIONS set could
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick replace trim
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch_dev_pool 3
_require_command "$WIPEFS_PROG" wipefs
. ./common/preamble
_begin_fstest auto quick qgroup
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_btrfs_rescan_devices
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_fixed_by_kernel_commit b5ddcffa3777 \
"btrfs: fix put of uninitialized kobject after seed device delete"
. ./common/preamble
_begin_fstest auto quick rw snapshot clone prealloc punch
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_scratch_reflink
_require_chattr C
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick volume
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_btrfs_command inspect-internal dump-tree
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/reflink
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch_reflink
. ./common/preamble
_begin_fstest auto quick qgroup limit
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
# This test requires specific data space usage, skip if we have compression
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_btrfs_fs_feature "no_holes"
. ./common/preamble
_begin_fstest auto quick qgroup limit
-# Import common functions.
. ./common/filter
writer()
done
}
-# real QA test starts here
-
_supported_fs btrfs
# This test requires specific data space usage, skip if we have compression
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
. ./common/preamble
_begin_fstest auto quick compress rw
-# Import common functions.
. ./common/filter
. ./common/attr
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_odirect
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
. ./common/preamble
_begin_fstest auto quick zone balance
-# Import common functions.
. ./common/zoned
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_btrfs_command inspect-internal dump-tree
. ./common/preamble
_begin_fstest auto quick seed trim
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_fixed_by_kernel_commit 5e753a817b2d \
"btrfs: fix unmountable seed device after fstrim"
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
rm -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_test
_require_scratch
. ./common/preamble
_begin_fstest auto quick volume trim
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_btrfs_forget_or_module_loadable
_require_scratch_dev_pool 2
. ./common/filter
. ./common/dmflakey
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_dm_target flakey
# rm -r -f $tmp.*
# }
-# Import common functions.
-# . ./common/filter
-
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick idmapped subvol
-# get standard environment, filters and checks
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_idmapped_mounts
_require_test
rm -r -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick rename subvol
-# Import common functions.
. ./common/renameat2
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_renameat2 exchange
_require_scratch
. ./common/preamble
_begin_fstest auto quick seed volume
-# Import common functions.
-# . ./common/filter
-
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_test
_require_scratch_dev_pool 2
. ./common/preamble
_begin_fstest auto quick seed volume
-# Import common functions.
-# . ./common/filter
-
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 3
_require_command "$WIPEFS_PROG" wipefs
rm -r -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_chattr C
. ./common/preamble
_begin_fstest auto quick compress dangerous
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
rm -r -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
# The size needed is variable as it depends on the specific randomized
cleanup_dmdev
}
-# Import common functions.
. ./common/filter
. ./common/filter.btrfs
-# real QA test starts here
_supported_fs btrfs
_require_scratch_dev_pool 3
_require_block_device $SCRATCH_DEV
. ./common/preamble
_begin_fstest auto qgroup balance
-# real QA test starts here
_supported_fs btrfs
_require_scratch
rm -r -f $tmp.*
}
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_fssum
# rm -r -f $tmp.*
# }
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs generic
_require_scratch
_require_xfs_io_command "fiemap"
. ./common/preamble
_begin_fstest auto quick defrag fiemap compress
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "fiemap"
# rm -r -f $tmp.*
# }
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "fiemap" "ranged"
. ./common/preamble
_begin_fstest auto quick qgroup
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
. ./common/preamble
_begin_fstest auto quick defrag fiemap remount
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "fiemap" "ranged"
. ./common/preamble
_begin_fstest auto quick compress attr
-# Import common functions.
. ./common/filter
. ./common/attr
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch
_require_attrs
. ./common/preamble
_begin_fstest auto quick read_repair
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch_dev_pool 3
. ./common/preamble
_begin_fstest auto quick read_repair
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
# No data checksums for NOCOW case, so can't detect corruption and repair data.
_require_btrfs_no_nodatacow
. ./common/preamble
_begin_fstest auto quick read_repair
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
_supported_fs btrfs
_require_scratch_dev_pool 3
. ./common/preamble
_begin_fstest auto quick send
-# real QA test starts here
_supported_fs btrfs
_fixed_by_kernel_commit 3aa5bd367fa5a3 \
"btrfs: send: fix sending link commands for existing file paths"
wait
}
-# Import common functions.
. ./common/zoned
-# real QA test starts here
-
_supported_fs btrfs
_fixed_by_kernel_commit 2ce543f47843 \
"btrfs: zoned: wait until zone is finished when allocation didn't progress"
. ./common/preamble
_begin_fstest auto quick attr
-# Import common functions.
. ./common/filter
. ./common/attr
-# real QA test starts here
_supported_fs btrfs
_fixed_by_kernel_commit b51111271b03 \
"btrfs: check if root is readonly while setting security xattr"
rm -r -f $tmp.*
}
-# Import common functions.
. ./common/filter
. ./common/verity
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_verity
_require_fsverity_builtin_signatures
. ./common/preamble
_begin_fstest auto quick send
-# real QA test starts here
_supported_fs btrfs
_fixed_by_kernel_commit 9ed0a72e5b355d \
"btrfs: send: fix failures when processing inodes with no links"
. ./common/filter
-# real QA test starts here
_supported_fs btrfs
_wants_kernel_commit eb3b50536642 \
"btrfs: scrub: per-device bandwidth control"
. ./common/preamble
_begin_fstest auto quick send compress snapshot
-# Modify as appropriate.
_supported_fs btrfs
_require_btrfs_send_version 2
_require_test
. ./common/preamble
_begin_fstest auto replace
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_command "$WIPEFS_PROG" wipefs
_btrfs_get_profile_configs replace-missing
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 2
-
_require_odirect
# Overwriting data is forbidden on a zoned block device
_require_non_zoned_device "${SCRATCH_DEV}"
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
# No data checksums for NOCOW case, so can't detect corruption and repair data.
. ./common/preamble
_begin_fstest auto quick verity prealloc
-# Import common functions.
. ./common/filter
. ./common/verity
rm -f $tmp.*
}
-# real QA test starts here
_supported_fs btrfs
_require_scratch_verity
_require_scratch_nocheck
validate $f
}
-# real QA test starts here
_scratch_mkfs >/dev/null
_scratch_mount
_restore_fsverity_signatures
}
-# Import common functions.
. ./common/filter
. ./common/attr
. ./common/dmlogwrites
. ./common/verity
-# real QA test starts here
_supported_fs btrfs
_require_scratch
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_dev_pool 6
_require_fstrim
_scratch_dev_pool_get 6
-
datasize=$((5 * 1024 * 1024 * 1024))
filesize=$((8 * 1024 * 1024))
nr_files=$(($datasize / $filesize))
. ./common/preamble
_begin_fstest auto raid volume
-# Import common functions.
. ./common/filter
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
# No zoned support for RAID56 yet.
. ./common/preamble
_begin_fstest auto quick balance
-# real QA test starts here
_supported_fs btrfs
_require_scratch_dev_pool 3
_fixed_by_kernel_commit b7625f461da6 \
. ./common/preamble
_begin_fstest auto quick preallocrw logical_resolve
-# real QA test starts here
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
_require_xfs_io_command "falloc" "-k"
. ./common/preamble
_begin_fstest auto quick qgroup clone subvol prealloc snapshot remount
-# Import common functions.
. ./common/reflink
-# Real QA test starts here.
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch_reflink
_require_cp_reflink
. ./common/preamble
_begin_fstest auto quick compress
-# Import common functions.
-# . ./common/filter
-
-# real QA test starts here
-
-# Modify as appropriate.
_supported_fs btrfs
_require_scratch
. ./common/filter.btrfs
. ./common/reflink
-# Modify as appropriate.
_supported_fs btrfs
_require_cp_reflink
_require_scratch
. ./common/preamble
_begin_fstest auto qgroup limit
-# Import common functions.
. ./common/filter
_supported_fs btrfs