Whamcloud - gitweb
LU-11597 tests: fix O_DIRECT test usage for ARM 36/33636/4
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 9 Nov 2018 22:13:31 +0000 (15:13 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 13 Nov 2018 06:18:32 +0000 (06:18 +0000)
commitf602b5ec7f45713122abd615a97a13d7c97d460e
tree4e48770c86f760edd020b9b93bc9e62496dfaa18
parent71f409c9b31b90fa432f1f46ad4e612fb65c7fcc
LU-11597 tests: fix O_DIRECT test usage for ARM

Fix cases where dd [io]flag=direct is used but the blocksize is
not a multiple of the client PAGE_SIZE, which is required for
Lustre.

Add a global PAGE_SIZE variable in init_test_env() and use that
in the tests, rather than having multiple local functions/calls
to re-determine the PAGE_SIZE value, which will not change for
the duration of the test.

Keep the get_page_size() function to initialize the global
PAGE_SIZE value and for the few cases where tests use the server
PAGE_SIZE (e.g. obdecho testing).

Test-Parameters: trivial
Test-Parameters: mdtfilesystemtype=zfs ostfilesystemtype=zfs testlist=sanity
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I0bb9efbcc743f6508180c8496fc50a67363ebbe5
Reviewed-on: https://review.whamcloud.com/33636
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh
lustre/tests/test-framework.sh