mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Restore support for in-kernel ZFS ioctls
In Illumos it is possible to call ioctl functions from within the kernel by passing the FKIOCTL flag. Neither FreeBSD nor Linux support that, but it doesn't hurt to keep it around, as all the code is there. Before this commit it was a dead code and zc_iflags was always zero. Restore this functionality by allowing to pass a flag to the zfsdev_ioctl_common() function. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net> Closes #10417
This commit is contained in:
committed by
GitHub
parent
77b998fa70
commit
529246df96
@@ -7375,9 +7375,9 @@ zfsdev_minor_alloc(void)
|
||||
}
|
||||
|
||||
long
|
||||
zfsdev_ioctl_common(uint_t vecnum, zfs_cmd_t *zc)
|
||||
zfsdev_ioctl_common(uint_t vecnum, zfs_cmd_t *zc, int flag)
|
||||
{
|
||||
int error, cmd, flag = 0;
|
||||
int error, cmd;
|
||||
const zfs_ioc_vec_t *vec;
|
||||
char *saved_poolname = NULL;
|
||||
nvlist_t *innvl = NULL;
|
||||
|
||||
Reference in New Issue
Block a user