1 #! /usr/bin/ksh -p 2 # 3 # CDDL HEADER START 4 # 5 # The contents of this file are subject to the terms of the 6 # Common Development and Distribution License (the "License"). 7 # You may not use this file except in compliance with the License. 8 # 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 # or http://www.opensolaris.org/os/licensing. 11 # See the License for the specific language governing permissions 12 # and limitations under the License. 13 # 14 # When distributing Covered Code, include this CDDL HEADER in each 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 # If applicable, add the following below this CDDL HEADER, with the 17 # fields enclosed by brackets "[]" replaced with your own identifying 18 # information: Portions Copyright [yyyy] [name of copyright owner] 19 # 20 # CDDL HEADER END 21 # 22 23 # 24 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25 # Use is subject to license terms. 26 # 27 28 CLNT2_MNTDIRV4="$ZONE_PATH/clnt2_mount_v4" 29 CLNT2_MNTOPTV4="vers=4" 30 31 CLNT2_MNTDIRV3="$ZONE_PATH/clnt2_mount_v3" 32 CLNT2_MNTOPTV3="vers=3" 33 34 CLNT2_MNTDIRV2="$ZONE_PATH/clnt2_mount_v2" 35 CLNT2_MNTOPTV2="vers=2" 36 37 if [[ $CLIENT2 == $SERVER ]]; then 38 # server local filesystem 39 export CLNT2_TESTDIR_LIST=$SHRDIR 40 else 41 # client2's mount points 42 if [[ -z $ZONE_PATH ]]; then 43 export CLNT2_TESTDIR_LIST="$CLNT2_MNTDIRV4 \ 44 $CLNT2_MNTDIRV3 $CLNT2_MNTDIRV2" 45 else 46 # TX doesn't support nfsv2 47 export CLNT2_TESTDIR_LIST="$CLNT2_MNTDIRV4 $CLNT2_MNTDIRV3" 48 fi 49 fi 50 51 cat >> $1 <<-EOF 52 export CLNT2_MNTDIRV4=$CLNT2_MNTDIRV4 53 export CLNT2_MNTOPTV4=$CLNT2_MNTOPTV4 54 export CLNT2_MNTDIRV3=$CLNT2_MNTDIRV3 55 export CLNT2_MNTOPTV3=$CLNT2_MNTOPTV3 56 export CLNT2_MNTDIRV2=$CLNT2_MNTDIRV2 57 export CLNT2_MNTOPTV2=$CLNT2_MNTOPTV2 58 export CLNT2_TESTDIR_LIST="$CLNT2_TESTDIR_LIST" 59 EOF