HomeFreeBSD

Add types to featureflags in zfs

Description

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
encapsulation.

This functionality will be used by the Redacted Send/Receive feature.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #7981

Details

Provenance
pcd_delphix.comAuthored on Oct 16 2018, 6:15 PM
mahrensCommitted on Oct 16 2018, 6:15 PM
Parents
rG779a6c0bf6df: deadlock between mm_sem and tx assign in zfs_write() and page fault
Branches
Unknown
Tags
Unknown