mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
fix device_scan when opening a regular file
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
0da097dcb2
commit
c663f210ca
@ -137,9 +137,6 @@ fn devs_str_sbs_from_device(
|
||||
if metadata.is_dir() {
|
||||
return Err(anyhow::anyhow!("'{}' is a directory, not a block device", device.display()));
|
||||
}
|
||||
if metadata.is_file() {
|
||||
return Err(anyhow::anyhow!("'{}' is a regular file, not a block device", device.display()));
|
||||
}
|
||||
}
|
||||
|
||||
let dev_sb = read_super_silent(device, *opts)?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user