From 9447000deb757667c38e84cb5c10a2b2cbb19874 Mon Sep 17 00:00:00 2001 From: mulhern Date: Wed, 3 Jan 2024 23:47:47 -0500 Subject: [PATCH] Run thin_check in loud mode stratisd does not need to suppress output via -q option to thin_check because the cmd module captures stderr and stdout streams and only reads them if the command returns an error. Signed-off-by: mulhern --- src/engine/strat_engine/cmd.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/engine/strat_engine/cmd.rs b/src/engine/strat_engine/cmd.rs index 5a5e6241ae..91f8df7c2a 100644 --- a/src/engine/strat_engine/cmd.rs +++ b/src/engine/strat_engine/cmd.rs @@ -342,11 +342,7 @@ pub fn set_uuid(devnode: &Path, uuid: FilesystemUuid) -> StratisResult<()> { /// Call thin_check on a thinpool pub fn thin_check(devnode: &Path) -> StratisResult<()> { - execute_cmd( - Command::new(get_executable(THIN_CHECK).as_os_str()) - .arg("-q") - .arg(devnode), - ) + execute_cmd(Command::new(get_executable(THIN_CHECK).as_os_str()).arg(devnode)) } /// Call thin_repair on a thinpool