diff options
author | Matthew Macy <[email protected]> | 2019-11-12 10:40:39 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-11-12 10:40:39 -0800 |
commit | 1f2f46be9576964c90ca25805c9741d56bbaccdf (patch) | |
tree | c97f1f0f4d02df788bb4e16350aed7e0c577304c /lib/libzpool | |
parent | 066e825221012e1e81ccf46b0448772bdd7e5483 (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 'lib/libzpool')
-rw-r--r-- | lib/libzpool/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzpool/util.c b/lib/libzpool/util.c index 67bc209ce..df1084cb6 100644 --- a/lib/libzpool/util.c +++ b/lib/libzpool/util.c @@ -237,7 +237,7 @@ pool_active(void *unused, const char *name, uint64_t guid, zcp->zc_nvlist_src = (uint64_t)(uintptr_t)packed; zcp->zc_nvlist_src_size = size; - ret = ioctl(fd, ZFS_IOC_POOL_SYNC, zcp); + ret = zfs_ioctl_fd(fd, ZFS_IOC_POOL_SYNC, zcp); fnvlist_pack_free(packed, size); free((void *)(uintptr_t)zcp->zc_nvlist_dst); |