Add types to featureflags in zfs
The boolean featureflags in use thus far in ZFS are extremely useful,
but because they take advantage of the zap layer, more interesting data
than just a true/false value can be stored in a featureflag. In redacted
send/receive, this is used to store the list of redaction snapshots for
a redacted dataset.
This change adds the ability for ZFS to store types other than a boolean
in a featureflag. The only other implemented type is a uint64_t array.
It also modifies the interfaces around dataset features to accomodate
the new capabilities, and adds a few new functions to increase
This functionality will be used by the Redacted Send/Receive feature.
Reviewed-by: Matthew Ahrens <firstname.lastname@example.org>
Reviewed-by: Brian Behlendorf <email@example.com>
Signed-off-by: Paul Dagnelie <firstname.lastname@example.org>