zfs/tests/zfs-tests/tests/functional/redacted_send
Ryan Moeller 22df2457a7
Avoid core dump on invalid redaction bookmark
libzfs aborts and dumps core on EINVAL from the kernel when trying to
do a redacted send with a bookmark that is not a redaction bookmark.

Move redacted bookmark validation into libzfs.

Check if the bookmark given for redactions is actually a redaction
bookmark.  Print an error message and exit gracefully if it is not.

Don't abort on EINVAL in zfs_send_one.

Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10138
2020-03-18 12:54:12 -07:00
..
Makefile.am Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
cleanup.ksh ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
redacted.cfg Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted.kshlib ZTS: Another round of changes for FreeBSD 2020-03-06 09:31:32 -08:00
redacted_compressed.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted_contents.ksh Fix typos in tests/ 2019-08-30 16:52:00 -07:00
redacted_deleted.ksh Fix typos in tests/ 2019-08-30 16:52:00 -07:00
redacted_disabled_feature.ksh Fix typos in tests/ 2019-08-30 16:52:00 -07:00
redacted_embedded.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted_holes.ksh ZTS: Another round of changes for FreeBSD 2020-03-06 09:31:32 -08:00
redacted_incrementals.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted_largeblocks.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted_many_clones.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted_mixed_recsize.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted_mounts.ksh ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
redacted_negative.ksh Avoid core dump on invalid redaction bookmark 2020-03-18 12:54:12 -07:00
redacted_origin.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted_props.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00
redacted_resume.ksh ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
redacted_size.ksh ZTS: Use wc -c instead of --bytes for portability 2020-02-07 12:31:38 -08:00
redacted_volume.ksh ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
setup.ksh Implement Redacted Send/Receive 2019-06-19 09:48:12 -07:00