summaryrefslogtreecommitdiff
path: root/fio-cdm
diff options
context:
space:
mode:
Diffstat (limited to 'fio-cdm')
-rwxr-xr-xfio-cdm5
1 files changed, 5 insertions, 0 deletions
diff --git a/fio-cdm b/fio-cdm
index 75ea28f..43603c2 100755
--- a/fio-cdm
+++ b/fio-cdm
@@ -58,6 +58,11 @@ fio2cdm() {
trap "rm -f ${TARGET}/.fio-diskmark" 0 1 2 3 9 15
+if [ -z "$TARGET" ] ; then
+ echo "First argument should be target directory."
+ exit 1
+fi
+
# see. http://www.winkey.jp/article.php/20110310142828679
cat <<_EOL_ | fio --output-format=terse - | fio2cdm
[global]