mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
filter: filter xfs_io's output in units of page size
The helpers introduced in this commit will be used to make btrfs tests that assume 4k as the page size to work on non-4k page-sized systems as well. Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
d5cb320a2e
commit
3b845a54e5
@@ -261,6 +261,14 @@ _filter_xfs_io_blocks_modified()
|
||||
_filter_xfs_io_units_modified "Block" $BLOCK_SIZE
|
||||
}
|
||||
|
||||
_filter_xfs_io_pages_modified()
|
||||
{
|
||||
PAGE_SIZE=$(get_page_size)
|
||||
|
||||
_filter_xfs_io_units_modified "Page" $PAGE_SIZE
|
||||
}
|
||||
|
||||
|
||||
_filter_test_dir()
|
||||
{
|
||||
sed -e "s,$TEST_DEV,TEST_DEV,g" -e "s,$TEST_DIR,TEST_DIR,g"
|
||||
|
||||
Reference in New Issue
Block a user