test/compress: Use gen_nvme.sh to create NVMe device
This script additionally checks that the device is bound to uio or vfio, so it won't let the test wipe your boot disk. Change-Id: I0424424d63dec5c626223a04181508198f75bd5b Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469622 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
ab854135ec
commit
a6e3a930bb
@ -26,7 +26,7 @@ function destroy_vols() {
|
||||
}
|
||||
|
||||
function create_vols() {
|
||||
$rpc_py construct_nvme_bdev -b "Nvme0" -t "pcie" -a $bdf
|
||||
$rootdir/scripts/gen_nvme.sh --json | $rpc_py load_subsystem_config
|
||||
$rpc_py bdev_lvol_create_lvstore Nvme0n1 lvs0
|
||||
$rpc_py bdev_lvol_create -t -l lvs0 lv0 100
|
||||
$rpc_py bdev_lvol_create -t -l lvs0 lv1 100
|
||||
@ -67,7 +67,6 @@ function run_bdevperf() {
|
||||
|
||||
timing_enter compress_test
|
||||
mkdir -p /tmp/pmem
|
||||
bdf=$(iter_pci_class_code 01 08 02 | head -1)
|
||||
|
||||
# per patch bdevperf uses slightly different params than nightly
|
||||
run_bdevperf 32 4096 3
|
||||
|
Loading…
Reference in New Issue
Block a user