From e5c0fb249bda6b94e042a265a70ef461c0ff9633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Thu, 24 Oct 2019 16:39:15 +0200 Subject: [PATCH] ziomon: Move dependency check for blktrace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When calling ziomon --version (or --help) the tool already checks whether blktrace is present and prevents any output for those command options when it isn't. This is unnecessary as no actual command is issued during the parameter check and all other dependencies are checked at a later point as well. Move the dependency check to ensure a working --version and --help option at any time. Signed-off-by: Jan Höppner --- ziomon/ziomon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ziomon/ziomon b/ziomon/ziomon index 584ca663..fd6248a3 100755 --- a/ziomon/ziomon +++ b/ziomon/ziomon @@ -745,10 +745,11 @@ function check_size_requirements() { trap emergency_shutdown SIGHUP SIGTERM SIGINT SIGQUIT; -check_blktrace; parse_params $@; +check_blktrace; + determine_host_adapters; check_cpuplugd;