From 5fabc7a683b5dd8e6312cb1b8553192f572c139a Mon Sep 17 00:00:00 2001 From: Olaf Faaland Date: Tue, 5 Apr 2016 17:11:49 -0700 Subject: [PATCH] use $(hostname) instead of ${HOSTNAME} for log names When run under the SLURM job scheduler, $HOSTNAME is the hostname of the job on which the job was submitted (ie where srun was invoked), not the hostname of the node on which zfsstress is running. This doesn't affect zfsstress in the normal situation of ZFS testing, but does affect it when in use for testing lustre. Signed-off-by: Olaf Faaland --- common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.sh b/common.sh index 93430c4..339c517 100644 --- a/common.sh +++ b/common.sh @@ -39,7 +39,7 @@ runmany() local logname set -x for instance in $(seq $COUNT); do - logname="${LOGDIR}/${CMD}.${HOSTNAME}.$$.${instance}.log" + logname="${LOGDIR}/${CMD}.$(hostname).$$.${instance}.log" $CMD < /dev/null > ${logname} 2>&1 & done set +x