Skip to content

Commit

Permalink
tests: fix device creation
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Lei <[email protected]>
  • Loading branch information
ming1 committed Feb 15, 2025
1 parent eb873ca commit 64fcc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/fio_common
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ __create_ublk_dev()
[ ${id} == "-" ] && echo "no free ublk device nodes" && exit -1
eval $UBLK add ${T_TYPE_PARAMS} -n $id > /dev/null 2>&1
udevadm settle
if [ -b /dev/ublkb0 ]; then
if [ -b /dev/ublkb${id} ]; then
echo "/dev/ublkb${id}"
else
echo "/dev/ublkb-unknown"
Expand Down

0 comments on commit 64fcc3b

Please sign in to comment.