blockdev 0.4.0

A Rust library for parsing and working with lsblk JSON output, providing type-safe block device representation and utilities for Linux
Documentation
{
  "blockdevices": [
    {
      "name": "sda",
      "maj:min": "8:0",
      "rm": false,
      "size": "447.1G",
      "ro": false,
      "type": "disk",
      "mountpoints": [null],
      "children": [
        {
          "name": "sda1",
          "maj:min": "8:1",
          "rm": false,
          "size": "512M",
          "ro": false,
          "type": "part",
          "mountpoints": ["/boot/efi"]
        },
        {
          "name": "sda2",
          "maj:min": "8:2",
          "rm": false,
          "size": "446.6G",
          "ro": false,
          "type": "part",
          "mountpoints": [null],
          "children": [
            {
              "name": "md0",
              "maj:min": "9:0",
              "rm": false,
              "size": "446.6G",
              "ro": false,
              "type": "raid1",
              "mountpoints": ["/"]
            }
          ]
        }
      ]
    },
    {
      "name": "nvme0n1",
      "maj:min": "259:0",
      "rm": false,
      "size": "1.7T",
      "ro": false,
      "type": "disk",
      "mountpoints": [null]
    }
  ]
}