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 <firstname.lastname@example.org>
Reviewed-by: Matt Ahrens <email@example.com>
Reviewed-by: Brian Behlendorf <firstname.lastname@example.org>
Reviewed-by: Tom Caputi <email@example.com>
Signed-off-by: loli10K <firstname.lastname@example.org>