mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +03:00
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 <allanjude@freebsd.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9511
This commit is contained in:
committed by
Brian Behlendorf
parent
066e825221
commit
1f2f46be95
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user