You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[breaking] Walk /sys and /proc directly. get_devices() no longer spawns lsblk or parses JSON; it reads the same sysfs files lsblk does, matches its output, and is several times faster. Zero runtime dependencies.
get_devices_at(sysroot), the equivalent of lsblk --sysroot, for bind-mounted host trees and tests.
Optional serde feature providing Serialize/Deserialize on every type; MajMin as the major:minor string.
DeviceType implements an infallible FromStr and is Copy.
Changed
[breaking] BlockDevices.blockdevices renamed to devices.
[breaking] BlockDevice.children is Vec<BlockDevice> instead of Option<Vec<BlockDevice>>.
[breaking] BlockDevice.mountpoints is Vec<String> instead of Vec<Option<String>>; empty when unmounted.
[breaking] BlockDevError is #[non_exhaustive] with a single Io { path, source } variant.
Removed
[breaking] parse_lsblk, BlockDevice::children_iter, BlockDevice::active_mountpoints, BlockDevice::active_mountpoints_iter, and the serde_json and thiserror dependencies.
Documentation
docs/sysfs-backend.md: why there is no lsblk C API to call, what the walk reads, and what it does not cover.
Fixed
Satisfy clippy 1.98 map_unwrap_or on the slaves check