Skip to content

Commit 4277da2

Browse files
committed
Upstream: zfs send/recv needs "keys" added.
Upstream: zfs send offset corrections [squash]
1 parent d39af2a commit 4277da2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

module/zfs/zfs_ioctl.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

52655266
static 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

65516554
static int

0 commit comments

Comments
 (0)