diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index 4418577d772b..ad316849bc2b 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -5260,6 +5260,7 @@ static const zfs_ioc_key_t zfs_keys_recv_new[] = { {"cleanup_fd", DATA_TYPE_INT32, ZK_OPTIONAL}, {"action_handle", DATA_TYPE_UINT64, ZK_OPTIONAL}, {"hidden_args", DATA_TYPE_NVLIST, ZK_OPTIONAL}, + {"input_fd_offset", DATA_TYPE_UINT64, ZK_OPTIONAL}, }; static int @@ -6436,6 +6437,7 @@ static const zfs_ioc_key_t zfs_keys_send_new[] = { {"resume_object", DATA_TYPE_UINT64, ZK_OPTIONAL}, {"resume_offset", DATA_TYPE_UINT64, ZK_OPTIONAL}, {"redactbook", DATA_TYPE_STRING, ZK_OPTIONAL}, + {"input_fd_offset", DATA_TYPE_UINT64, ZK_OPTIONAL}, }; /* ARGSUSED */ @@ -6493,8 +6495,8 @@ zfs_ioc_send_new(const char *snapname, nvlist_t *innvl, nvlist_t *outnvl) #ifdef __APPLE__ off = zfs_file_off(fp); if (off > 0) - nvlist_lookup_uint64(outnvl, - "output_fd_offset", (uint64_t *)&off); + nvlist_add_uint64(outnvl, + "output_fd_offset", (uint64_t)off); #endif zfs_file_put(fd); return (error); @@ -6546,6 +6548,7 @@ static const zfs_ioc_key_t zfs_keys_send_space[] = { {"resume_object", DATA_TYPE_UINT64, ZK_OPTIONAL}, {"resume_offset", DATA_TYPE_UINT64, ZK_OPTIONAL}, {"bytes", DATA_TYPE_UINT64, ZK_OPTIONAL}, + {"input_fd_offset", DATA_TYPE_UINT64, ZK_OPTIONAL}, }; static int