md/004: md/002: adjust per_host_store to use numeric boolean
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
@@ -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
@@ -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
Quoted 7 lines · John Pittman
In both md/004 and md/002, when loading the
scsi_debugmodule, "true" is passed as the value forper_host_store. However, on older kernels, kstrtobool is more limited, so we get the error:
"scsi_debug:true' invalid for parameterper_host_store'". Change the boolean from "true" to "1" to avoid this issue.Signed-off-by John Pittman <[email protected]>
Thanks you for the patch and sorry for this slow response. I applied the patch.