aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Dagnelie <paulcd2000@gmail.com>2021-06-24 19:42:01 +0000
committerGitHub <noreply@github.com>2021-06-24 19:42:01 +0000
commit8f11b1d26efbdf5d654dfee6415518705b0ddf55 (patch)
treeb29c0a88fd27d846b393de35e8719ced82d99db1
parent86f5e0bbce02c23748a7a212e86da7f88a461d0c (diff)
downloadsrc-8f11b1d26efbdf5d654dfee6415518705b0ddf55.tar.gz
src-8f11b1d26efbdf5d654dfee6415518705b0ddf55.zip
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
-rw-r--r--lib/libzfs/libzfs_sendrecv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libzfs/libzfs_sendrecv.c b/lib/libzfs/libzfs_sendrecv.c
index 136255786cc1..5c57028c4013 100644
--- a/lib/libzfs/libzfs_sendrecv.c
+++ b/lib/libzfs/libzfs_sendrecv.c
@@ -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);
}