diff --git a/scripts/gen_nvme.sh b/scripts/gen_nvme.sh index e3020b371..f06d73c1a 100755 --- a/scripts/gen_nvme.sh +++ b/scripts/gen_nvme.sh @@ -19,6 +19,9 @@ function usage() { function create_json_config() { local bdev_json_cfg=() + local bdfs=() + + bdfs=($(nvme_in_userspace)) for i in "${!bdfs[@]}"; do bdev_json_cfg+=("$( @@ -70,8 +73,6 @@ while getopts 'h-:' optchar; do esac done -bdfs=($(nvme_in_userspace)) - if [[ $gen_subsystems == true ]]; then create_json_config_with_subsystems else