projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f9333c
)
t/zbd: fix null_blk configuration in run-tests-against-nullb
author
Dmitry Fomichev
<dmitry.fomichev@wdc.com>
Wed, 19 Jul 2023 10:57:55 +0000
(19:57 +0900)
committer
Vincent Fu
<vincent.fu@samsung.com>
Thu, 20 Jul 2023 13:52:37 +0000
(09:52 -0400)
Correctly set max_open in null_blk configfs.
Fix displayed number of conventional zones in section config banner.
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link:
https://lore.kernel.org/r/20230719105756.553146-13-shinichiro.kawasaki@wdc.com
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/zbd/run-tests-against-nullb
patch
|
blob
|
blame
|
history
diff --git
a/t/zbd/run-tests-against-nullb
b/t/zbd/run-tests-against-nullb
index 7d2c7fa8fc2e5110bfc00d63ce3e7bcc83b4c88c..4617e398f19a1957c958d8b321fe6dd64a060a40 100755
(executable)
--- a/
t/zbd/run-tests-against-nullb
+++ b/
t/zbd/run-tests-against-nullb
@@
-67,13
+67,20
@@
configure_nullb()
fi
echo "${zone_capacity}" > zone_capacity
fi
+
if ((conv_pcnt)); then
if ((!conv_supported)); then
echo "null_blk does not support conventional zones"
return 2
fi
nr_conv=$((dev_size/zone_size*conv_pcnt/100))
- echo "${nr_conv}" > zone_nr_conv
+ else
+ nr_conv=0
+ fi
+ echo "${nr_conv}" > zone_nr_conv
+
+ if ((max_open)); then
+ echo "${max_open}" > zone_max_open
fi
fi