mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fstests: fix fallocate commands that need the unshare switch
We re-added the UNSHARE flag to fallocate, so go make sure that all the unshare tests actually check that the installed copy of xfs_io supports the 'funshare' command and that the underlying filesystem understands the flag, and change the tests themselves to use funshare. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
bf5a5da572
commit
ed6e4664ee
+2
-1
@@ -53,6 +53,7 @@ _require_scratch_reflink
|
||||
_require_cp_reflink
|
||||
_require_fiemap
|
||||
_require_xfs_io_command "cowextsize"
|
||||
_require_xfs_io_command "funshare"
|
||||
_require_odirect
|
||||
|
||||
rm -f $seqres.full
|
||||
@@ -89,7 +90,7 @@ $XFS_IO_PROG -f -c "cowextsize" $testdir/file2 >> $seqres.full
|
||||
cat $testdir/file2 > /dev/null
|
||||
$XFS_IO_PROG -d -f -c "pwrite -R -S 0x63 -b $real_blksz 0 $filesize" -c "fdatasync" $testdir/file2 >> $seqres.full
|
||||
$XFS_IO_PROG -f -c "fadvise -d 0 $filesize" -c "fsync" $testdir/file2 >> $seqres.full
|
||||
$XFS_IO_PROG -f -c "falloc 0 $filesize" $testdir/file2 >> $seqres.full
|
||||
$XFS_IO_PROG -f -c "funshare 0 $filesize" $testdir/file2 >> $seqres.full
|
||||
_scratch_cycle_mount
|
||||
|
||||
echo "Compare files"
|
||||
|
||||
Reference in New Issue
Block a user