mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
device_scan: Don't use read_super_silent when opening manual list of devs
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e1674f3b12
commit
0532e81278
@ -169,7 +169,7 @@ pub fn scan_sbs(device: &String, opts: &bch_opts) -> Result<Vec<(PathBuf, bch_sb
|
||||
.collect::<Vec<_>>();
|
||||
let sbs = devices
|
||||
.iter()
|
||||
.map(|path| read_super_silent(path, *opts))
|
||||
.map(|path| bch_bindgen::sb_io::read_super_opts(path.as_ref(), *opts))
|
||||
.collect::<Result<Vec<_>>>()?;
|
||||
|
||||
Ok(devices.iter().zip(sbs.iter())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user