HomeFreeBSD

zcp: get_prop: fix encryptionroot and encryption

Description

zcp: get_prop: fix encryptionroot and encryption

It was reported that channel programs' zfs.get_prop doesn't work for
dataset properties encryption and encryptionroot.

They are handled in get_special_prop due to the need to call
dsl_dataset_crypt_stats to load those dsl props.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Co-authored-by: Graham Christensen <graham@grahamc.com>
Closes #17280

Details

Provenance
Pavel Snajdr <snajpa@snajpa.net>Authored on May 28 2025, 12:04 AM
GitHub <noreply@github.com>Committed on May 28 2025, 12:04 AM
Parents
rG06fa8f3f6924: zfs_cmd: reorganise zfs_cmd_t to match original size
Branches
Unknown
Tags
Unknown