mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/008: Add test for fallocate zero range at block boundary
Add test for fallocate zero range at block boundary. This is similar to the test xfs/290 however this one is generic and we're testing different block sizes as well - namely 1k, 2k, 4k and 64k. Note that we're not creating file systems with given block size buy rather test all 4 options. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
9589e15873
commit
613cb3027c
@@ -1310,7 +1310,7 @@ _require_xfs_io_command()
|
||||
"falloc" )
|
||||
testio=`$XFS_IO_PROG -F -f -c "falloc 0 1m" $testfile 2>&1`
|
||||
;;
|
||||
"fpunch" | "fcollapse" | "zero" )
|
||||
"fpunch" | "fcollapse" | "zero" | "fzero" )
|
||||
testio=`$XFS_IO_PROG -F -f -c "pwrite 0 20k" -c "fsync" \
|
||||
-c "$command 4k 8k" $testfile 2>&1`
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user