zfs list -o <user_property> does not output user properties
Description
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.
How Has This Been Tested?
Manually tested by setting the user properties and retrieving them in JSON format.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Performance enhancement (non-breaking change which improves efficiency)
[ ] Code cleanup (non-breaking change which makes code smaller or more readable)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
[ ] Documentation (a change to man pages or other documentation)
Motivation and Context
zfs list -o <user_property>
does not output user propertiesDescription
This commit fixes JSON output for
zfs list
when user properties are requested with-o
flag. This case needed to be handled specifically sincezfs_prop_to_name
does not return property name for user properties, instead it is stored inpl->pl_user_prop
.How Has This Been Tested?
Manually tested by setting the user properties and retrieving them in JSON format.
Types of changes
Checklist:
Signed-off-by
.