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": "1T",
      "ro": false,
      "type": "disk",
      "mountpoints": [null],
      "children": [
        {
          "name": "sda1",
          "maj:min": "8:1",
          "rm": false,
          "size": "1T",
          "ro": false,
          "type": "part",
          "mountpoints": [null],
          "children": [
            {
              "name": "luks-root",
              "maj:min": "253:0",
              "rm": false,
              "size": "1T",
              "ro": false,
              "type": "crypt",
              "mountpoints": [null],
              "children": [
                {
                  "name": "vg0-root",
                  "maj:min": "253:1",
                  "rm": false,
                  "size": "100G",
                  "ro": false,
                  "type": "lvm",
                  "mountpoints": ["/"]
                },
                {
                  "name": "vg0-home",
                  "maj:min": "253:2",
                  "rm": false,
                  "size": "900G",
                  "ro": false,
                  "type": "lvm",
                  "mountpoints": ["/home"]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}