zpool/zfs: allow --json wherever -j is allowed
commit7bf525530afdd71af14c9e740a3ed5af3876826a
authorRob Norris <rob.norris@klarasystems.com>
Fri, 11 Oct 2024 16:37:57 +0000 (12 03:37 +1100)
committerGitHub <noreply@github.com>
Fri, 11 Oct 2024 16:37:57 +0000 (11 09:37 -0700)
tree49508f7ae65554f2b8fa89cc3b56996794d75a8c
parentb4e4cbeb20240cc7a780fb0e4bebd0134701fee8
zpool/zfs: allow --json wherever -j is allowed

Mostly so that with the JSON formatting options are also used, they all
look the same. To my eye, `-j --json-flat-vdevs` suggests that they are
different or unrelated, while `--json --json-flat-vdevs` invites no
further questions.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Umer Saleem <usaleem@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16632
cmd/zfs/zfs_main.c
cmd/zpool/zpool_main.c
man/man8/zfs-list.8
man/man8/zfs-mount.8
man/man8/zfs-program.8
man/man8/zfs-set.8
man/man8/zpool-get.8
man/man8/zpool-list.8
man/man8/zpool-status.8
tests/zfs-tests/tests/functional/cli_root/json/json_sanity.ksh