Skip to content
jc-rs
GitHub

mount

--mountv1.2.0

Converts `mount` command output to JSON

LinuxmacOSFreeBSDcommandslurpable
$ mount | jc-rs --mount

A real pair

From the reference corpus (generic/mount-spaces-in-mountpoint.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.

mountgeneric
/dev/sda1 on /media/ingo/Ubuntu 22.04.3 LTS amd64 type iso9660 (ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,uid=1000,gid=1000,dmode=500,fmode=400,iocharset=utf8,uhelper=udisks2)
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "filesystem": "/dev/sda1",
    "mount_point": "/media/ingo/Ubuntu 22.04.3 LTS amd64",
    "type": "iso9660",
    "options": [
      "ro",
      "nosuid",
      "nodev",
      "relatime",
      "nojoliet",
      "check=s",
      "map=n",
      "blocksize=2048",
      "uid=1000",
      "gid=1000",
      "dmode=500",
      "fmode=400",
      "iocharset=utf8",
      "uhelper=udisks2"
    ]
  }
]

Fixture coverage

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

Magic syntax

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

Source: crates/jc-rs-parsers/src/system/mount.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