scripts/fio-wrapper: Make sure all nvme block devices exist

This is needed before we can start looking up attributes
of the block subsystem under sysfs. In some occasions they
may simply not exist yet at a given time.

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: I4261d17e92e02acec31b8affaccd0aa11c2b851e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7863
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Michal Berger 2021-05-12 20:31:04 +02:00 committed by Tomasz Zawadzki
parent 42c82595c3
commit 3c578739e9

View File

@ -59,7 +59,11 @@ get_nvme() {
blocks+=("$nvme_sub/${nvme##*/}"n*)
done
done
printf '%s\n' "${blocks[@]##*/}"
blocks=("${blocks[@]##*/}")
if [[ -e $rootdir/scripts/sync_dev_uevents.sh ]]; then
"$rootdir/scripts/sync_dev_uevents.sh" block/disk "${blocks[@]}"
fi > /dev/null
printf '%s\n' "${blocks[@]}"
}
get_devices() {