freebsd-dev/cddl/contrib/opensolaris/lib
Ryan Moeller 69534635ff MFOpenZFS: ZVOLs should not be allowed to have children
zfs create, receive and rename can bypass this hierarchy rule. Update
both userland and kernel module to prevent this issue and use pyzfs
unit tests to exercise the ioctls directly.

Note: this commit slightly changes zfs_ioc_create() ABI. This allow to
differentiate a generic error (EINVAL) from the specific case where we
tried to create a dataset below a ZVOL (ZFS_ERR_WRONG_PARENT).

Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>

Approved by:	mav (mentor)
MFC after:	2 weeks
Sponsored by:	iXsystems, Inc.
openzfs/zfs@d8d418ff0c
2020-03-25 15:56:18 +00:00
..
libcmdutils MFV r325013,r325034: 640 number_to_scaled_string is duplicated in several commands 2017-10-27 12:37:22 +00:00
libctf/common Reference stdint.h types in ctf.5. 2019-07-17 16:31:50 +00:00
libdtrace Do not load dtraceall.ko if dtrace.ko is already loaded. 2020-02-28 17:05:27 +00:00
libgen/common Mechanically convert cddl sun #ifdef's to illumos 2015-01-17 14:44:59 +00:00
libnvpair MFV r337223: 2018-08-03 01:52:25 +00:00
libuutil/common cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c 2014-03-07 23:01:35 +00:00
libzfs/common MFOpenZFS: ZVOLs should not be allowed to have children 2020-03-25 15:56:18 +00:00
libzfs_core/common MFV r354377: 10554 Implemented zpool sync command 2019-11-07 11:18:28 +00:00
libzpool/common vfs: add a file missed in r356337 2020-01-03 22:47:31 +00:00
pyzfs/common