mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
shared/001: Standard collapse range tests
shared/001 tries to test various corner cases for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
db6d20e672
commit
c6d351279f
@@ -1332,6 +1332,20 @@ _require_xfs_io_falloc_punch()
|
||||
_notrun "xfs_io fallocate punch command failed (no fs support?)"
|
||||
}
|
||||
|
||||
# check that xfs_io, kernel and filesystem all support fallocate with collapse
|
||||
# range
|
||||
_require_xfs_io_falloc_collapse()
|
||||
{
|
||||
testfile=$TEST_DIR/$$.falloc
|
||||
testio=`$XFS_IO_PROG -f -c "pwrite 0 20k" -c "fsync" \
|
||||
-c "fcollapse 4k 8k" $testfile 2>&1`
|
||||
rm -f $testfile 2>&1 > /dev/null
|
||||
echo $testio | grep -q "not found" && \
|
||||
_notrun "xfs_io fallocate collapse range support is missing"
|
||||
echo $testio | grep -q "Operation not supported" && \
|
||||
_notrun "xfs_io fallocate collapse range failed (no fs support?)"
|
||||
}
|
||||
|
||||
# check that xfs_io, kernel and filesystem support fiemap
|
||||
_require_xfs_io_fiemap()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user