mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/{569,570}: use _filter_xfs_io_error to filter pwrite64
xfsprogs prior to commit 2f9a125c3a39 ("xfsprogs: replace
pread64/pwrite64 by equivalent pread/pwrite") will see "pwrite64:
Text file busy" error. Just filter these "pwrite64"s to "pwrite"
with _filter_xfs_io_error.
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
+2
-2
@@ -52,8 +52,8 @@ done
|
||||
swapon $testfile 2>&1 | _filter_scratch
|
||||
|
||||
# Can we write to it?
|
||||
$XFS_IO_PROG -c 'pwrite -S 0x59 64k 64k' $testfile
|
||||
$XFS_IO_PROG -d -c 'pwrite -S 0x60 64k 64k' $testfile
|
||||
$XFS_IO_PROG -c 'pwrite -S 0x59 64k 64k' $testfile 2>&1 | _filter_xfs_io_error
|
||||
$XFS_IO_PROG -d -c 'pwrite -S 0x60 64k 64k' $testfile 2>&1 | _filter_xfs_io_error
|
||||
$XFS_IO_PROG -c 'mmap -rw 64k 64k' -c 'mwrite -S 0x61 64k 64k' $testfile
|
||||
|
||||
# Can we change the file size?
|
||||
|
||||
+2
-2
@@ -47,8 +47,8 @@ done
|
||||
swapon $SCRATCH_DEV 2>&1 | _filter_scratch
|
||||
|
||||
# Can we write to it?
|
||||
$XFS_IO_PROG -c 'pwrite -S 0x59 64k 64k' $SCRATCH_DEV
|
||||
$XFS_IO_PROG -d -c 'pwrite -S 0x60 64k 64k' $SCRATCH_DEV
|
||||
$XFS_IO_PROG -c 'pwrite -S 0x59 64k 64k' $SCRATCH_DEV 2>&1 | _filter_xfs_io_error
|
||||
$XFS_IO_PROG -d -c 'pwrite -S 0x60 64k 64k' $SCRATCH_DEV 2>&1 | _filter_xfs_io_error
|
||||
$XFS_IO_PROG -c 'mmap -rw 64k 64k' -c 'mwrite -S 0x61 64k 64k' $SCRATCH_DEV
|
||||
|
||||
# success, all done
|
||||
|
||||
Reference in New Issue
Block a user