aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-11-12 10:40:39 -0800
committerBrian Behlendorf <[email protected]>2019-11-12 10:40:39 -0800
commit1f2f46be9576964c90ca25805c9741d56bbaccdf (patch)
treec97f1f0f4d02df788bb4e16350aed7e0c577304c /include
parent066e825221012e1e81ccf46b0448772bdd7e5483 (diff)
Add wrapper stub for zfs_cmd ioctl to libzpool
FreeBSD needs a wrapper for handling zfs_cmd ioctls. In libzfs this is handled by zfs_ioctl. However, here we need to wrap the call directly. Reviewed-by: Allan Jude <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9511
Diffstat (limited to 'include')
-rw-r--r--include/libzutil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libzutil.h b/include/libzutil.h
index 93aac5f3c..3dd4fcfb2 100644
--- a/include/libzutil.h
+++ b/include/libzutil.h
@@ -143,6 +143,9 @@ extern void zpool_dump_ddt(const ddt_stat_t *, const ddt_histogram_t *);
extern int zpool_history_unpack(char *, uint64_t, uint64_t *, nvlist_t ***,
uint_t *);
+struct zfs_cmd;
+int zfs_ioctl_fd(int fd, unsigned long request, struct zfs_cmd *zc);
+
#ifdef __cplusplus
}
#endif