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>
_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"
echo `stat -f -c %S $1`
}
+get_page_size()
+{
+ echo $(getconf PAGE_SIZE)
+}
+
+
init_rc
################################################################################