From 10542cbea42c493d2dc6f8c8877b572118b79756 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. Lustre-change: https://review.whamcloud.com/48177 Lustre-commit: TBD (from c7682adb9d021794a4aada49f15e3531d0ecea39) Test-Parameters: trivial testlist=conf-sanity env=ONLY=98 Signed-off-by: Kevin Zhao Change-Id: Icdeb8b73308056e216c3f4ce71907b0c928d2c30 Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50506 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- 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 113629b..174e36c 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -7385,7 +7385,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