Skip to content
jc-rs
GitHub

blkid

--blkidv1.0.0

Converts `blkid` command output to JSON

Linuxcommandslurpable
$ blkid | jc-rs --blkid

A real pair

From the reference corpus (centos-7.7/blkid-sda2.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

blkidcentos-7.7
/dev/sda2: UUID="3klkIj-w1qk-DkJi-0XBJ-y3o7-i2Ac-vHqWBM" TYPE="LVM2_member" 
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "device": "/dev/sda2",
    "uuid": "3klkIj-w1qk-DkJi-0XBJ-y3o7-i2Ac-vHqWBM",
    "type": "LVM2_member"
  }
]

Fixture coverage

10/10oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs blkidjc-rs runs the command itself and parses what it prints. Recognised for: `blkid`

Source: crates/jc-rs-parsers/src/disk/blkid.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare