HomeFreeBSD

MFC r295844:

Description

MFC r295844:

Fix "invalid type '(null)'" usage messages in zfs(8) and zpool(8).

Currently, zfs(8) and zpool(8) print "invalid type '(null)'" or similar
messages, if you pass in invalid types, sources or column names for "zfs
get", "zfs list" and "zpool get". This is because the commands use
getsubopt(3), and in case of failure, they print 'value', which is NULL
when sub options don't match.

They should print 'suboptarg' instead, which is the documented way to
get at the non-matching sub option value.

Reviewed by: smh
Differential Revision: https://reviews.freebsd.org/D5365

Details

Provenance
dimAuthored on
Reviewer
smh
Differential Revision
D5365: Fix invalid type '(null)' usage messages in zfs(8) and zpool(8)
Parents
rS296435: Revert r296175
Branches
Unknown
Tags
Unknown