@@ -5260,6 +5260,7 @@ static const zfs_ioc_key_t zfs_keys_recv_new[] = {
52605260 {"cleanup_fd" , DATA_TYPE_INT32 , ZK_OPTIONAL },
52615261 {"action_handle" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
52625262 {"hidden_args" , DATA_TYPE_NVLIST , ZK_OPTIONAL },
5263+ {"input_fd_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
52635264};
52645265
52655266static int
@@ -6436,6 +6437,7 @@ static const zfs_ioc_key_t zfs_keys_send_new[] = {
64366437 {"resume_object" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
64376438 {"resume_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
64386439 {"redactbook" , DATA_TYPE_STRING , ZK_OPTIONAL },
6440+ {"input_fd_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
64396441};
64406442
64416443/* ARGSUSED */
@@ -6493,8 +6495,8 @@ zfs_ioc_send_new(const char *snapname, nvlist_t *innvl, nvlist_t *outnvl)
64936495#ifdef __APPLE__
64946496 off = zfs_file_off (fp );
64956497 if (off > 0 )
6496- nvlist_lookup_uint64 (outnvl ,
6497- "output_fd_offset" , (uint64_t * ) & off );
6498+ nvlist_add_uint64 (outnvl ,
6499+ "output_fd_offset" , (uint64_t ) off );
64986500#endif
64996501 zfs_file_put (fd );
65006502 return (error );
@@ -6546,6 +6548,7 @@ static const zfs_ioc_key_t zfs_keys_send_space[] = {
65466548 {"resume_object" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
65476549 {"resume_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
65486550 {"bytes" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
6551+ {"input_fd_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
65496552};
65506553
65516554static int
0 commit comments