]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: Fix send_partial_dataset.ksh
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 13 Mar 2022 20:16:49 +0000 (13:16 -0700)
committerGitHub <noreply@github.com>
Sun, 13 Mar 2022 20:16:49 +0000 (13:16 -0700)
commit56a0699e5e06242a7a134ad080aadfa13486bb59
treee973cbe43bca0a5a3b088123c2998a684a09092e
parentebcf12f763130d17daeac7f0065adc924eff3847
ZTS: Fix send_partial_dataset.ksh

The send_partial_dataset test verifies that partial send streams
can be resumed.  This test may occasionally fail with a "token is
corrupt" error if the `mess_send_file` truncates a send stream
below the size of the DRR_BEGIN record.  Update this function to
set a minimum size to ensure there is at least an intact DDR_BEGIN
record which allows for the receiving dataset to be created.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13177
tests/zfs-tests/tests/functional/rsend/rsend.kshlib