Structs§
- Block
Device - Represents a block device as output by
lsblk. - Block
Devices - Represents the entire JSON output produced by
lsblk --json.
Functions§
- get_
devices - Runs the
lsblk --jsoncommand, captures its output, and parses it into aBlockDevicesstruct. If the command fails or the output cannot be parsed, an error is returned.