@@ -5260,6 +5260,7 @@ static const zfs_ioc_key_t zfs_keys_recv_new[] = {
5260
5260
{"cleanup_fd" , DATA_TYPE_INT32 , ZK_OPTIONAL },
5261
5261
{"action_handle" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
5262
5262
{"hidden_args" , DATA_TYPE_NVLIST , ZK_OPTIONAL },
5263
+ {"input_fd_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
5263
5264
};
5264
5265
5265
5266
static int
@@ -6436,6 +6437,7 @@ static const zfs_ioc_key_t zfs_keys_send_new[] = {
6436
6437
{"resume_object" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
6437
6438
{"resume_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
6438
6439
{"redactbook" , DATA_TYPE_STRING , ZK_OPTIONAL },
6440
+ {"input_fd_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
6439
6441
};
6440
6442
6441
6443
/* ARGSUSED */
@@ -6493,8 +6495,8 @@ zfs_ioc_send_new(const char *snapname, nvlist_t *innvl, nvlist_t *outnvl)
6493
6495
#ifdef __APPLE__
6494
6496
off = zfs_file_off (fp );
6495
6497
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 );
6498
6500
#endif
6499
6501
zfs_file_put (fd );
6500
6502
return (error );
@@ -6546,6 +6548,7 @@ static const zfs_ioc_key_t zfs_keys_send_space[] = {
6546
6548
{"resume_object" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
6547
6549
{"resume_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
6548
6550
{"bytes" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
6551
+ {"input_fd_offset" , DATA_TYPE_UINT64 , ZK_OPTIONAL },
6549
6552
};
6550
6553
6551
6554
static int
0 commit comments