Skip to content

Commit 06811a4

Browse files
committed
qa/workunits/nvmeof/fio_test.sh: fix fio filenames
Filenames were provided to fio as nvme1n1:nvme1n2, it should be pull path (/dev/nvme1n1:/dev/nvme1n2). Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
1 parent 0b0f450 commit 06811a4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

qa/workunits/nvmeof/fio_test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ fi
5050

5151

5252
RUNTIME=${RUNTIME:-600}
53-
53+
filename=$(echo "$selected_drives" | sed -z 's/\n/:\/dev\//g' | sed 's/:\/dev\/$//')
54+
filename="/dev/$filename"
5455

5556
cat >> $fio_file <<EOF
5657
[nvmeof-fio-test]
@@ -61,7 +62,7 @@ size=${SIZE:-1G}
6162
time_based=1
6263
runtime=$RUNTIME
6364
rw=${RW:-randrw}
64-
filename=$(echo "$selected_drives" | tr '\n' ':' | sed 's/:$//')
65+
filename=${filename}
6566
verify=md5
6667
verify_fatal=1
6768
direct=1

0 commit comments

Comments
 (0)