mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
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
5d7f47d828
commit
620389d32f
@ -1743,6 +1743,10 @@ zfs_send_resume_impl(libzfs_handle_t *hdl, sendflags_t *flags, int outfd,
|
|||||||
tmpflags.compress = B_TRUE;
|
tmpflags.compress = B_TRUE;
|
||||||
if (lzc_flags & LZC_SEND_FLAG_EMBED_DATA)
|
if (lzc_flags & LZC_SEND_FLAG_EMBED_DATA)
|
||||||
tmpflags.embed_data = B_TRUE;
|
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,
|
error = estimate_size(zhp, fromname, outfd, &tmpflags,
|
||||||
resumeobj, resumeoff, bytes, redact_book, errbuf);
|
resumeobj, resumeoff, bytes, redact_book, errbuf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user