diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-20 20:29:48 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-20 22:32:00 -0500 |
commit | 5e224596cfdf9ad9413536482224e2fe79b9e387 (patch) | |
tree | d2a2b3f4066cf8e656f4fc56890b07de97829721 /src | |
parent | b5fd066153c40a70a29caa1ea7987723ab687763 (diff) |
Remove gag usage
Possibly-fixes: https://github.com/koverstreet/bcachefs-tools/issues/217
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/cmd_mount.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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<bch_sb_handle> { - // 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<Vec<(PathBuf, bch_sb_handle)>> { |