mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
block: test fallocate for block devices
Now that we're wiring up fallocate's PUNCH_HOLE and ZERO_RANGE features for block devices, add some tests to make sure they work correctly. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.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
b4e06bfa0d
commit
45da5f51d4
@@ -0,0 +1,32 @@
|
||||
QA output created by 707
|
||||
Create and format
|
||||
Regular fallocate
|
||||
fallocate: Operation not supported
|
||||
Insert range
|
||||
fallocate: Operation not supported
|
||||
Collapse range
|
||||
fallocate: Operation not supported
|
||||
Unaligned zero range
|
||||
fallocate: Invalid argument
|
||||
Unaligned punch
|
||||
fallocate: Invalid argument
|
||||
Zero range past MAX_LFS_FILESIZE keep size
|
||||
fallocate: File too large
|
||||
Zero range past MAX_LFS_FILESIZE
|
||||
fallocate: File too large
|
||||
Zero range to MAX_LFS_FILESIZE fail w/o keepsize
|
||||
fallocate: Invalid argument
|
||||
Zero range starts past EOD
|
||||
fallocate: Invalid argument
|
||||
Punch starts past EOD
|
||||
fallocate: Invalid argument
|
||||
Check contents
|
||||
b83f9394092e15bdcda585cd8e776dc6 SCSI_DEBUG_DEV
|
||||
Destroy device
|
||||
Create w/o unmap or writesame and format
|
||||
Zero punch, no fallback available
|
||||
fallocate: Operation not supported
|
||||
Zero range, write fallback
|
||||
Check contents
|
||||
0fc6bc93cd0cd97e3cde5ea39ea1185d SCSI_DEBUG_DEV
|
||||
Destroy device
|
||||
Reference in New Issue
Block a user