Skip to contentSkip to conversation

md/004: md/002: adjust per_host_store to use numeric boolean

PATCH In review John Pittman 2 participants 2 messages Dec 9, 2025 – Dec 20, 2025 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 md/004: md/002: adjust per_host_store to use numeric boolean

In both md/004 and md/002, when loading the scsi_debug module, "true" is passed as the value for per_host_store. However, on older kernels, kstrtobool is more limited, so we get the error:
"scsi_debug: true' invalid for parameter per_host_store'". Change the boolean from "true" to "1" to avoid this issue.

---
 tests/md/002 | 2 +-
 tests/md/004 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/md/002 +1 -1
index 1af4bfb..1349a18 100755
@@ -22,7 +22,7 @@ test() {
 		atomic_wr=1
 		num_tgts=1
 		add_host=4
-		per_host_store=true
+		per_host_store=1
 		dev_size_mb=16
 	)
 
tests/md/004 +1 -1
index 9084066..6cae99a 100755
@@ -24,7 +24,7 @@ setup_test_device() {
 	local scsi_debug_params=(
 		num_tgts=1
 		add_host=2
-		per_host_store=true
+		per_host_store=1
 		"${@:2}"
 	)
 
Signature · 1 line
2.51.1
#1 lore raw
Quoted 7 lines · John Pittman

In both md/004 and md/002, when loading the scsi_debug module, "true" is passed as the value for per_host_store. However, on older kernels, kstrtobool is more limited, so we get the error:
"scsi_debug: true' invalid for parameter per_host_store'". Change the boolean from "true" to "1" to avoid this issue.

Thanks you for the patch and sorry for this slow response. I applied the patch.