Whamcloud - gitweb
LU-11667 tests: Fix sanity test 317 for 64K PAGE_SIZE OST
authorXinliang Liu <xinliang.liu@linaro.org>
Thu, 28 Oct 2021 09:48:38 +0000 (09:48 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Mar 2022 17:10:11 +0000 (17:10 +0000)
commitddcac417f89da7f03e989954afdf9fc32d69a25a
tree8f66ef0b643415c016b79833c2fd870f881209f8
parentb7125e33cbdb3bca282e86f5fd8ad39047bf84e6
LU-11667 tests: Fix sanity test 317 for 64K PAGE_SIZE OST

When create a file, blocks are allocated with PAGE_SIZE aligned,
see function osd_ldiskfs_map_inode_pages(). E.g. for 64K PAGE_SIZE
Arm64 OST server, if create a file with size less than 64K, it
actually allocates 128 blocks each block 512 Bytes.

It needs to adjust the test for 64K PAGE_SIZE OST server.

Lustre-change: https://review.whamcloud.com/45395
Lustre-commit: 63d4d9ff2f5c8cc992ca6b2f698bb43a3257bfb3

Test-Parameters: trivial
Test-Parameters: clientdistro=el8.5 clientarch=aarch64 fstype=ldiskfs testlist=sanity \
env=PTLDEBUG=-1,ONLY=317
Test-Parameters: fstype=ldiskfs testlist=sanity \
env=PTLDEBUG=-1,ONLY=317

Change-Id: Iada701f4f424093e847fc70aa843873b75fe6b06
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46482
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh