From 5e224596cfdf9ad9413536482224e2fe79b9e387 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 20 Jan 2024 20:29:48 -0500 Subject: Remove gag usage Possibly-fixes: https://github.com/koverstreet/bcachefs-tools/issues/217 Signed-off-by: Kent Overstreet --- src/commands/cmd_mount.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/commands/cmd_mount.rs b/src/commands/cmd_mount.rs index b120c91e..c644767e 100644 --- a/src/commands/cmd_mount.rs +++ b/src/commands/cmd_mount.rs @@ -101,13 +101,10 @@ fn mount( } fn read_super_silent(path: &std::path::PathBuf) -> anyhow::Result { - // Stop libbcachefs from spamming the output - let _gag = gag::BufferRedirect::stdout().unwrap(); - let mut opts = bcachefs::bch_opts::default(); opt_set!(opts, noexcl, 1); - bch_bindgen::rs::read_super_opts(&path, opts) + bch_bindgen::sb_io::read_super_silent(&path, opts) } fn get_devices_by_uuid(uuid: Uuid) -> anyhow::Result> { -- cgit v1.2.3