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:
Chandan Rajendra
2015-12-21 18:01:46 +11:00
committed by Dave Chinner
parent d5cb320a2e
commit 3b845a54e5
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -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"