setup.sh: redirect 'hash lsblk' output to /dev/null
We are checking if lsblk exists already, but when it doesn't let's not emit that detail to the user. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I34fedcc97fb7091229a11b2592cb7bd21a032b5b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14834 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
dcf30711ef
commit
274a9ffbd5
@ -207,7 +207,7 @@ function get_used_bdf_block_devs() {
|
||||
local blocks block blockp dev mount holder
|
||||
local used
|
||||
|
||||
hash lsblk || return 1
|
||||
hash lsblk &> /dev/null || return 1
|
||||
blocks=($(get_block_dev_from_bdf "$bdf"))
|
||||
|
||||
for block in "${blocks[@]}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user