use crate::devices::DeviceInfo;
use anyhow::Result;
pub trait DeviceInventory {
fn list_storage_devices() -> Result<Vec<DeviceInfo>>;
fn device_size_bytes(path: &str) -> Option<u64>;
fn device_size_sectors(path: &str) -> Option<u64> {
Self::device_size_bytes(path).map(|b| b / 512)
}
fn is_removable(path: &str) -> Result<bool>;
}