summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <[email protected]>2020-06-08 13:57:22 -0700
committerGitHub <[email protected]>2020-06-08 13:57:22 -0700
commit529246df96e2838b18592ed18628d2a122828be8 (patch)
tree071fc2524233adc65c4f734ae42276fd3fdaa53a /include/sys
parent77b998fa7018801426a6e216a462c83699fa9f44 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Pawel Jakub Dawidek <[email protected]> Closes #10417
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/zfs_ioctl_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/zfs_ioctl_impl.h b/include/sys/zfs_ioctl_impl.h
index 6a0b188ea..2da6dde87 100644
--- a/include/sys/zfs_ioctl_impl.h
+++ b/include/sys/zfs_ioctl_impl.h
@@ -86,7 +86,7 @@ boolean_t zfs_vfs_held(zfsvfs_t *);
int zfs_vfs_ref(zfsvfs_t **);
void zfs_vfs_rele(zfsvfs_t *);
-long zfsdev_ioctl_common(uint_t, zfs_cmd_t *);
+long zfsdev_ioctl_common(uint_t, zfs_cmd_t *, int);
int zfsdev_attach(void);
void zfsdev_detach(void);
int zfs_kmod_init(void);