Commit c97b31f8 authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

setup/interactive: Add update_status wrapper



Allow for the relevant options to fall through and call to it.

Change-Id: I70d1daa3b9a5ad4c9da79e34545580145c84d93a
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22314


Reviewed-by: default avatarKrzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent 6a33e252
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -74,24 +74,21 @@ main_menu() {
			4) fdevices 1 ;;
			5) odevices ;;
			5e) editor odevices ;;
			6) bdevices ;;
			6) bdevices ;;&
			q) yn "Are you sure you want to quit?" && return 1 ;;
			c | commit | config)
				yn "Are you sure you want jump to config mode?" || continue
				mode=config
				return
				;;
			hp) hugepages ;;
			s | status) status ;;
			r | reset)
				yn "Are you sure you want jump to reset mode?" || continue
				mode=reset
				return
				;;
			u | update)
				CMD=reset cache_pci_bus
				collect_devices
				;;
			hp) hugepages ;;
			6 | u | update) update_status ;;
		esac
	done
}
@@ -301,3 +298,8 @@ hugepages() {
		fi
	done
}

update_status() {
	CMD=reset cache_pci_bus
	collect_devices
}