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:
parent
42c82595c3
commit
3c578739e9
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user