Whamcloud - gitweb
LU-2904 tests: mount Lustre client with "32bitapi"
authorJian Yu <jian.yu@intel.com>
Mon, 27 May 2013 06:18:56 +0000 (14:18 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Jun 2013 18:30:36 +0000 (14:30 -0400)
Mount Lustre client with "32bitapi" option while exporting a
filesystem with a 64-bit root inode. This is a temporary workaround
for LU-2904, and it should be removed when there is a patch that
fixes the NFS FSID generation problem.

Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes \
clientdistro=el6 serverdistro=el6 clientarch=x86_64 \
serverarch=x86_64 serverjob=lustre-b2_4 serverbuildno=12 \
testlist=parallel-scale-nfsv3,parallel-scale-nfsv4

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Ia26f3e3d23d901725ab175a6d370f58a1a93519c
Reviewed-on: http://review.whamcloud.com/6457
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
lustre/tests/parallel-scale-nfs.sh

index 0e07505..64d55f8 100755 (executable)
@@ -20,8 +20,15 @@ check_and_setup_lustre
 cleanup_mount $MOUNT
 # mount lustre on mds
 lustre_client=$(facet_active_host $SINGLEMDS)
-[ "$NFSVERSION" = "4" ] && cl_mnt_opt="$MOUNTOPT,32bitapi" || cl_mnt_opt=""
-zconf_mount_clients $lustre_client $MOUNT "$cl_mnt_opt" || \
+CL_MNT_OPT=""
+if [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.3.61) ]]; then
+       # Mount Lustre client with "32bitapi" option while exporting the
+       # filesystem with a 64-bit root inode. This is a temporary workaround
+       # for LU-2904, and it should be removed when there is a patch that
+       # fixes the NFS FSID generation problem.
+       CL_MNT_OPT="$MOUNTOPT,32bitapi"
+fi
+zconf_mount_clients $lustre_client $MOUNT "$CL_MNT_OPT" ||
     error "mount lustre on $lustre_client failed"
 
 # setup the nfs