-
Notifications
You must be signed in to change notification settings - Fork 248
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
JSON output broken for btrfs subvolume
subcommands
#833
Comments
The json output for the subvolume related commands is currently enabled only in the experimental build. The format hasn't been finalized, at least To see the difference run:
and
This is still missing the send and receive related transaction ids, times, and maybe other inforamtion that's available and does not have to be conditional like that. |
Ohh, I did not realise that, thanks! Perhaps a note in the error message or in btrfs-progs/cmds/subvolume-list.c Line 1741 in b0e5ef4
Either way, it is entirely reasonable that the feature is not on by default if the format is not yet stabilised, even though I really wish it were. The horrendous Sorry for the false report. Unless you wish to use the issue to track the stabilisation or docs update, feel free to close this. |
From my understanding, the three
btrfs subvolume
subcommandslist
,show
, andget-default
should respect the global--format=json
flag. Currently, none of them seem to do so. Instead, all of them printERROR: output format json is unsupported for this command
.btrfs --format=json device stats
seems to work fine, so it's not all JSON output being broken, just the subvolume subcommands.Version information:
uname -a
Linux tartaros 6.6.32 #1-NixOS SMP PREEMPT_DYNAMIC Sat May 25 14:22:56 UTC 2024 x86_64 GNU/Linux
btrfs --version
btrfs-progs v6.9.2
The text was updated successfully, but these errors were encountered: