Whamcloud - gitweb
LU-18344 test: sanity test_247f interop fix 33/56733/2
authorLai Siyao <lai.siyao@whamcloud.com>
Sun, 29 Sep 2024 18:04:25 +0000 (14:04 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 5 Nov 2024 06:31:01 +0000 (06:31 +0000)
2.16 always enables remote subdir mount, update sanity test_247f.

Test-Parameters: trivial
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ibe04d307a5596a6047d5fd301e19c33bf07f1e21
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56733
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index 9545761..fdb4acc 100755 (executable)
@@ -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 \