Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix noop receive of raw send stream #9221

Merged
merged 1 commit into from Sep 5, 2019

Commits on Sep 5, 2019

  1. Fix noop receive of raw send stream

    Currently, the noop receive code fails to work with raw send streams
    and resuming send streams. This happens because zfs_receive_impl()
    reads the DRR_BEGIN payload without reading the payload itself.
    Normally, the kernel expects to read this itself, but in this case
    the recv_skip() code runs instead and it is not prepared to handle
    the stream being left at any place other than the beginning of a
    record.
    
    This patch resolves this issue by manually reading the DRR_BEGIN
    payload in the dry-run case. This patch also includes a number of
    small fixups in this code path.
    
    Fixes: openzfs#9173
    
    Signed-off-by: Tom Caputi <tcaputi@datto.com>
    Tom Caputi committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    4d5f236 View commit details
    Browse the repository at this point in the history