From 215a9509684be1b9732115263ef754d5505cb115 Mon Sep 17 00:00:00 2001
From: fehrmann <henning.fehrmann@aei.mpg.de>
Date: Tue, 13 Dec 2016 09:50:05 +0100
Subject: [PATCH] if not mounted, do not run

---
 fio.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fio.sh b/fio.sh
index f195a6e..f84f376 100755
--- a/fio.sh
+++ b/fio.sh
@@ -23,6 +23,7 @@ function run {
 }
 
 function run_write {
+	mount |grep -q mnt || exit 1
 	MDIR=$1
 	if [ ! -d $LOGD ]
 	then
@@ -48,6 +49,7 @@ function run_write {
 }
 
 function run_read {
+	mount |grep -q mnt || exit 1
 	MDIR=$1
 	HOST=$( hostname -s )
 	dir=$MDIR/fio/$HOST
-- 
GitLab