zfs/lib
Prawn 28fdc5f811 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
2021-06-23 13:22:14 -07:00
..
libavl Fixes for make dist 2020-06-26 14:20:02 -07:00
libefi pool may become suspended during device expansion 2020-09-18 12:38:30 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Include the ABI with dist tarball 2020-11-22 10:01:47 -08:00
libshare freebsd/libshare: nfs: make nfs_is_shared() thread-safe 2021-06-23 13:22:14 -07:00
libspl FreeBSD: fix HEAD build, conditionally remove FDSYNC defines 2021-01-24 16:05:56 -08:00
libtpool Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libunicode Fixes for make dist 2020-06-26 14:20:02 -07:00
libuutil Fix a resource leak in uu_avl_pool_destroy 2021-01-28 11:39:00 -08:00
libzfs receive: don't fail inheriting (-x) properties on wrong dataset type 2021-06-23 13:22:14 -07:00
libzfs_core libzfs{,_core}: set O_CLOEXEC on persistent (ZFS_DEV and MNTTAB) fds 2021-06-23 13:22:14 -07:00
libzfsbootenv libzfsbootenv: do not depend on libnvpair 2020-11-24 10:27:14 -08:00
libzpool libzpool: set_global_var: fix endianness handling (fixes zdb -o ) 2021-03-05 12:51:48 -08:00
libzstd Avoid symbol collision with in-kernel zstdlib 2020-08-24 12:20:41 -07:00
libzutil libzutil: zfs_isnumber(): return false if input empty 2021-06-23 13:22:14 -07:00
Makefile.am Library ABI tracking with abigail 2020-11-17 20:29:02 +00:00