Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Btrfs filesystem show JSON format support #761

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Jun 5, 2024

  1. btrfs-progs: filesystem show: introduce printing helper functions

    Introduce helper functions for printing the filesystem data and list of
    devices. This prepares the both printing code paths of filesystem show
    to support json output.
    
    Signed-off-by: Jelle van der Waa <[email protected]>
    jelly committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    9d0c2b5 View commit details
    Browse the repository at this point in the history
  2. btrfs-progs: convert missing device printf() to a warning()

    To support JSON formatted output for `filesystem show` stdout can't
    contain warnings, the warning macro prints to stderr.
    jelly committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    945bacd View commit details
    Browse the repository at this point in the history
  3. btrfs-progs: filesystem show: implement json format output

    Implements JSON-formatted output for the `filesystem show` command using
    the `--format json` global option. Devices are in a `device-list` array,
    optionally showing if a device is missing.
    
    Signed-off-by: Jelle van der Waa <[email protected]>
    jelly committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    75d699b View commit details
    Browse the repository at this point in the history