mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/196: check for delalloc blocks after pwrite
This test depends on the pwrite creating delalloc blocks, which doesn't happen if the scratch fs is mounted in dax mode (or has an extent size hint applied). Therefore, check for delalloc blocks and _notrun if we didn't get any. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
fe64c0e70d
commit
5b2232dde5
@@ -50,6 +50,8 @@ bytes=$((64 * 1024))
|
||||
|
||||
# create sequential delayed allocation
|
||||
$XFS_IO_PROG -f -c "pwrite 0 $bytes" $file >> $seqres.full 2>&1
|
||||
$XFS_IO_PROG -c "bmap -elpv" $file | grep -q delalloc || \
|
||||
_notrun "Unable to create delayed allocations"
|
||||
|
||||
# Enable write drops. All buffered writes are dropped from this point on.
|
||||
_scratch_inject_error "drop_writes" 1
|
||||
|
||||
Reference in New Issue
Block a user