HomeFreeBSD

JSON: fix user properties output for zpool list

Description

JSON: fix user properties output for zpool list

This commit fixes JSON output for zpool list when user properties are
requested with -o flag. This case needed to be handled specifically
since zpool_prop_to_name does not return property name for user
properties, instead it is stored in pl->pl_user_prop.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #16734

Details

Provenance
Umer Saleem <usaleem@ixsystems.com>Authored on Fri, Nov 8, 10:09 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mon, Nov 11, 5:46 PM
Parents
rG57fc5971f6be: JSON: fix user properties output for zfs list
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3a0a142f1c41: JSON: fix user properties output for zpool list (authored by Umer Saleem <usaleem@ixsystems.com>).Mon, Nov 11, 5:46 PM