#set -vx
-LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
+LUSTRE=${LUSTRE:-$(dirname $0)/..}
. $LUSTRE/tests/test-framework.sh
init_test_env $@
-. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
init_logging
+
. $LUSTRE/tests/setup-cifs.sh
check_and_setup_lustre
SMBCLIENTS=$(exclude_items_from_list $SMBCLIENTS $LUSTRE_CLIENT_SMBSRV)
[ -z "$SMBCLIENTS" ] &&
- skip_env "need at least two nodes: samba server and samba client" &&
- exit 0
+ skip_env "need at least two nodes: samba server and samba client"
# set CONFIGURE_SMB=false to skip smb config
CONFIGURE_SMB=${CONFIGURE_SMB:-true}
local space=$(df -P $SMBCLIMNTPT | tail -n 1 | awk '{ print $4 }')
[ $space -lt $((size * nclients)) ] && size=$((space * 3 / 4 / nclients))
+ check_set_fallocate
+
local cmd="$FSX -c 50 -p 500 -S $seed -P $TMP -l $size -N $numop "
echo "Using: $cmd"