Skip to content

Commit

Permalink
Run thin_check in loud mode
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mulkieran committed Jan 4, 2024
1 parent 0fc2e04 commit 0608d86
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/engine/strat_engine/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0608d86

Please sign in to comment.