HomeFreeBSD

JSON: fix user properties output for zfs list

Description

JSON: fix user properties output for zfs list

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

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

Details

Provenance
Umer Saleem <usaleem@ixsystems.com>Authored on Thu, Nov 7, 7:31 PM
GitHub <noreply@github.com>Committed on Thu, Nov 7, 7:31 PM
Parents
rG4a7a0a029011: Use <fcntl.h> instead of <sys/fcntl.h>
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG57fc5971f6be: JSON: fix user properties output for zfs list (authored by Umer Saleem <usaleem@ixsystems.com>).Thu, Nov 7, 7:31 PM