From 4b777cf7a758e9168ec2a6eabd84cb5363da2179 Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Sun, 29 Sep 2024 14:04:25 -0400 Subject: [PATCH] LU-18344 test: sanity test_247f interop fix 2.16 always enables remote subdir mount, update sanity test_247f. Test-Parameters: trivial Signed-off-by: Lai Siyao Change-Id: Ibe04d307a5596a6047d5fd301e19c33bf07f1e21 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56733 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Emoly Liu Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 9545761..fdb4acc 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -21361,7 +21361,11 @@ test_247f() { do_nodes $mdts "$LCTL set_param mdt.*.enable_remote_subdir_mount=0" stack_trap "umount_client $submount" - FILESET="$fileset/$tdir/remote" mount_client $submount && + stat=$(do_facet mds1 $LCTL get_param -n \ + mdt.*MDT0000.enable_remote_subdir_mount) + # 2.16 always enables remote subdir mount + (( stat == 0 )) && + FILESET="$fileset/$tdir/remote" mount_client $submount && error "mount remote dir $dir should fail" for dir in $tdir/remote/subdir $tdir/striped $tdir/striped/subdir \ -- 1.8.3.1