Fix flag copying in resume case
A couple flags weren't being copied in the case where we're doing size estimation on a resume. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Signed-off-by: Paul Dagnelie <pcd@delphix.com> Closes: #12266
This commit is contained in:
parent
86f5e0bbce
commit
8f11b1d26e
|
@ -1743,6 +1743,10 @@ zfs_send_resume_impl(libzfs_handle_t *hdl, sendflags_t *flags, int outfd,
|
|||
tmpflags.compress = B_TRUE;
|
||||
if (lzc_flags & LZC_SEND_FLAG_EMBED_DATA)
|
||||
tmpflags.embed_data = B_TRUE;
|
||||
if (lzc_flags & LZC_SEND_FLAG_RAW)
|
||||
tmpflags.raw = B_TRUE;
|
||||
if (lzc_flags & LZC_SEND_FLAG_SAVED)
|
||||
tmpflags.saved = B_TRUE;
|
||||
error = estimate_size(zhp, fromname, outfd, &tmpflags,
|
||||
resumeobj, resumeoff, bytes, redact_book, errbuf);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue