mirror_zfs/lib
Ryan Moeller 97bbeeb938
Fail invalid incremental recursive send gracefully
zfs send -R -i snap1 pool/ds@snap1 is an invalid invocation of zfs send
because the incremental source and target snapshots are the same.  We
have an error message for this condition, but we don't make it there
because of a failed assert while iterating through the dataset's
snapshots.

Check for NULL to avoid the assert so we can make it to the error
message.

Test this form of invalid send invocation in rsend tests.  Fix the
rsend_016_neg test while here: log_neg itself doesn't fail the test,
and writing to /dev/null is not supported on all Linux kernels.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11121 
Closes #12533
2021-10-08 11:14:26 -07:00
..
libavl lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libefi lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libicp cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libnvpair Update ABI files via new libabigail version 2021-09-02 10:02:18 -07:00
libshare lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libspl libspl: fix warning about missing spl_pagesize declaration 2021-09-24 16:59:26 -06:00
libtpool lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libunicode cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libuutil Update ABI files via new libabigail version 2021-09-02 10:02:18 -07:00
libzfs Fail invalid incremental recursive send gracefully 2021-10-08 11:14:26 -07:00
libzfs_core Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00
libzfsbootenv Use fallthrough macro 2021-09-14 10:17:54 -06:00
libzpool Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00
libzstd cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzutil Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00
Makefile.am Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00