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>
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 \