HomeFreeBSD

receive: don't fail inheriting (-x) properties on wrong dataset type

Description

receive: don't fail inheriting (-x) properties on wrong dataset type

Receiving datasets while blanket inheriting properties like zfs
receive -x mountpoint can generally be desirable, e.g. to avoid
unexpected mounts on backup hosts.

Currently this will fail to receive zvols due to the mountpoint
property being applicable to filesystems only. This limitation
currently requires operators to special-case their minds and tools
for zvols.

This change gets rid of this limitation for inherit (-x) by
Spiting up the dataset type handling: Warnings for inheriting (-x),
errors for overriding (-o).

Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
Closes #11416
Closes #11840
Closes #11864

Details

Provenance
Prawn <Insane.Prawny@gmail.com>Authored on Apr 27 2021, 12:23 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 10 2021, 7:06 PM
Parents
rG1b7d883eaa89: FreeBSD: damage control racing .. lookups in face of mkdir/rmdir
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6c1a7be11e5d: receive: don't fail inheriting (-x) properties on wrong dataset type (authored by Prawn <Insane.Prawny@gmail.com>).May 10 2021, 7:06 PM