Skip to content

Commit

Permalink
Upstream: zfs send/recv needs "keys" added.
Browse files Browse the repository at this point in the history
Upstream: zfs send offset corrections [squash]
  • Loading branch information
lundman committed May 31, 2021
1 parent 032f920 commit 162912a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 162912a

Please sign in to comment.