mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: don't assume preallocation is supported when reflinks are supported
Various reflink tests currently use fallocate to preallocate space without first checking that preallocations are supported. Add explicit checks. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
ad91ed8a66
commit
31735e301e
@@ -31,6 +31,7 @@ _cleanup()
|
||||
_supported_os Linux
|
||||
_require_scratch_reflink
|
||||
_require_cp_reflink
|
||||
_require_xfs_io_command "fpunch"
|
||||
_require_test_program "punch-alternating"
|
||||
|
||||
rm -f "$seqres.full"
|
||||
|
||||
@@ -31,6 +31,7 @@ _cleanup()
|
||||
_supported_os Linux
|
||||
_supported_fs generic
|
||||
_require_scratch_reflink
|
||||
_require_xfs_io_command "falloc"
|
||||
_require_xfs_io_command "fiemap"
|
||||
_require_scratch_explicit_shared_extents
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ _cleanup()
|
||||
_supported_os Linux
|
||||
_supported_fs generic
|
||||
_require_scratch_reflink
|
||||
_require_xfs_io_command "falloc"
|
||||
_require_xfs_io_command "fiemap"
|
||||
|
||||
echo "Format and mount"
|
||||
|
||||
@@ -34,6 +34,7 @@ _supported_fs generic
|
||||
_supported_os Linux
|
||||
_require_scratch_reflink
|
||||
_require_cp_reflink
|
||||
_require_xfs_io_command "fpunch"
|
||||
|
||||
_scratch_mkfs >> $seqres.full 2>&1 || _fail "mkfs failed"
|
||||
_scratch_mount || _fail "mount failed"
|
||||
|
||||
@@ -32,6 +32,7 @@ _supported_os Linux
|
||||
_require_scratch_reflink
|
||||
_require_cp_reflink
|
||||
_require_test_program "punch-alternating"
|
||||
_require_xfs_io_command "fpunch"
|
||||
|
||||
rm -f "$seqres.full"
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ _cleanup()
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
_require_scratch_reflink
|
||||
_require_xfs_io_command "falloc"
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
|
||||
Reference in New Issue
Block a user