mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/247: filter out expected XFS warnings for mixed mmap/direct I/O
generic/247 reproduces some of the same, expected warnings from XFS as generic/095. These warnings occur due to mixed buffered/mapped I/O racing with direct I/O to the same file. generic/095 contains a custom dmesg filter to prevent test failure in the event of such warnings. Lift the helper from generic/095 to common/xfs and reuse it in generic/247 to implement the same behavior. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
+1
-18
@@ -122,25 +122,8 @@ $FIO_PROG $fio_config >>$seqres.full 2>&1
|
||||
# to be potent, we don't want to simply _disable_dmesg_check which could miss
|
||||
# other potential bugs. So filter out the intentional WARNINGs, make sure test
|
||||
# doesn't fail because of this warning and fails on other WARNINGs.
|
||||
filter_xfs_dmesg()
|
||||
{
|
||||
local warn1="WARNING:.*fs/xfs/xfs_file\.c:.*xfs_file_dio_aio_write.*"
|
||||
local warn2="WARNING:.*fs/xfs/xfs_file\.c:.*xfs_file_dio_aio_read.*"
|
||||
local warn3="WARNING:.*fs/xfs/xfs_file\.c:.*xfs_file_read_iter.*"
|
||||
local warn4="WARNING:.*fs/xfs/xfs_file\.c:.*xfs_file_aio_read.*"
|
||||
local warn5="WARNING:.*fs/iomap\.c:.*iomap_dio_rw.*"
|
||||
sed -e "s#$warn1#Intentional warnings in xfs_file_dio_aio_write#" \
|
||||
-e "s#$warn2#Intentional warnings in xfs_file_dio_aio_read#" \
|
||||
-e "s#$warn3#Intentional warnings in xfs_file_read_iter#" \
|
||||
-e "s#$warn4#Intentional warnings in xfs_file_aio_read#" \
|
||||
-e "s#$warn5#Intentional warnings in iomap_dio_rw#"
|
||||
}
|
||||
|
||||
# umount before checking dmesg in case umount triggers any WARNING or Oops
|
||||
_scratch_unmount
|
||||
|
||||
if [ "$FSTYP" == "xfs" ]; then
|
||||
_check_dmesg filter_xfs_dmesg
|
||||
_check_dmesg _filter_xfs_dmesg
|
||||
else
|
||||
_check_dmesg
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user