mirror_zfs/lib/libzfs
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
..
.gitignore Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_changelist.c Fix changelist mounted-dataset iteration 2018-10-10 21:13:13 -07:00
libzfs_config.c OpenZFS 4521 - zfstest is trying to execute evil "zfs unmount -a" 2017-02-03 13:24:44 -08:00
libzfs_core.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_crypto.c Added encryption support for zfs recv -o / -x 2018-08-15 09:48:49 -07:00
libzfs_dataset.c ZVOLs should not be allowed to have children 2019-02-08 15:44:15 -08:00
libzfs_diff.c OpenZFS 9559 - zfs diff handles files on delete queue in fromsnap poorly 2018-12-14 09:50:49 -08:00
libzfs_import.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00
libzfs_iter.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00
libzfs_mount.c OpenZFS 9880 - Race in ZFS parallel mount 2018-12-07 11:02:23 -08:00
libzfs_pool.c OpenZFS 9102 - zfs should be able to initialize storage devices 2019-01-07 10:37:26 -08:00
libzfs_sendrecv.c ZVOLs should not be allowed to have children 2019-02-08 15:44:15 -08:00
libzfs_status.c Add missing MMP status code to libzfs_status 2019-01-03 12:15:46 -08:00
libzfs_util.c ZVOLs should not be allowed to have children 2019-02-08 15:44:15 -08:00
libzfs.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
Makefile.am Include third party licenses in dist tarballs 2019-01-08 09:29:34 -08:00
THIRDPARTYLICENSE.openssl Encryption patch follow-up 2017-10-11 16:54:48 -04:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00