Vagrant: update the used Bdev

To solve below issue:

https://github.com/spdk/spdk/issues/1550

The default one is Malloc0 which is not used.

Change-Id: I36b64457e8583c8243b8b9d6714c42e2d43ade7d
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3831
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
GangCao 2020-08-18 15:17:12 -04:00 committed by Tomasz Zawadzki
parent 8bb7511fd9
commit bb0f64daa9
2 changed files with 14 additions and 1 deletions

View File

@ -34,10 +34,22 @@ function create_json_config() {
echo '}'
}
function create_json_config_with_subsystems() {
cat <<- JSON
{
"subsystems": [
$(create_json_config)
]
}
JSON
}
bdfs=($(nvme_in_userspace))
if [ "$1" = "--json" ]; then
create_json_config
elif [ "$1" = "--json-with-subsystems" ]; then
create_json_config_with_subsystems
else
create_classic_config
fi

View File

@ -184,7 +184,8 @@ Following VM initialization you must:
```
$ sudo scripts/setup.sh
$ sudo ./build/examples/hello_bdev
$ sudo scripts/gen_nvme.sh --json-with-subsystems > ./build/examples/hello_bdev.json
$ sudo ./build/examples/hello_bdev --json ./build/examples/hello_bdev.json -b Nvme0n1
```
### Running autorun.sh with vagrant