mirror_zfs/contrib
loli10K d8d418ff0c 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>
2019-02-08 15:44:15 -08:00
..
bash_completion.d Add bash completions by Aneurin Price. 2014-08-06 15:03:28 -07:00
dracut Removed suggestion to use root dataset as bootfs 2019-01-08 16:15:30 -08:00
initramfs Make initramfs-tools script encryption aware 2018-11-09 11:30:09 -08:00
pyzfs ZVOLs should not be allowed to have children 2019-02-08 15:44:15 -08:00
Makefile.am Adopt pyzfs from ClusterHQ 2018-05-01 10:33:35 -07:00