]> granicus.if.org Git - zfs/commit
Fix ASSERT in zfs_receive_one()
authorLOLi <loli10K@users.noreply.github.com>
Tue, 4 Dec 2018 17:38:55 +0000 (18:38 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 4 Dec 2018 17:38:55 +0000 (09:38 -0800)
commitbdbd5477bcba03b1df1e02b3b89e795c99e2f4c8
treea29cacf3008ea0ad2109b2bb6057632394fd92e1
parent7c9a42921e60dbad0e3003bd571591f073860233
Fix ASSERT in zfs_receive_one()

This commit fixes the following ASSERT in zfs_receive_one() when
receiving a send stream from a root dataset with the "-e" option:

    $ sudo zfs snap source@snap
    $ sudo zfs send source@snap | sudo zfs recv -e destination/recv
    chopprefix > drrb->drr_toname
    ASSERT at libzfs_sendrecv.c:3804:zfs_receive_one()

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8121
cmd/zfs/zfs_main.c
lib/libzfs/libzfs_sendrecv.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_-e.ksh [new file with mode: 0755]