From 4068ca725954db2a1fc42bf8d184f4672c2ed113 Mon Sep 17 00:00:00 2001 From: Kevin Zhao Date: Fri, 28 Oct 2022 10:05:24 +0800 Subject: [PATCH] LU-11785 tests: fix conf-sanity/98 mount check on 64K page This patch fix the mount option length check expectation fail on 64K page. Since the maxopt_len is the minmium value of page_size or 64K page_size, but the test cases only hard code the length of option to the 4K one. This patch add the mount options according to the page size. Test-Parameters: trivial testlist=conf-sanity env=ONLY=98 Test-Parameters: testlist=conf-sanity env=ONLY=98 clientarch=aarch64 clientdistro=el8.6 Signed-off-by: Kevin Zhao Change-Id: Icdeb8b73308056e216c3f4ce71907b0c928d2c30 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48177 Tested-by: Maloo Tested-by: jenkins Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger Reviewed-by: xinliang --- lustre/tests/conf-sanity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index dd9ca94..b936134 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -7946,7 +7946,7 @@ test_98() setup check_mount || error "mount failed" mountopt="user_xattr" - for ((x = 1; x <= 400; x++)); do + for ((x = 1; x <= PAGE_SIZE/11; x++)); do mountopt="$mountopt,user_xattr" done mount_client $MOUNT remount,$mountopt 2>&1 | grep "too long" || -- 1.8.3.1