zfs/cmd/zstream
George Amanakis 72a82f312f Report dnodes with faulty bonuslen
In files created/modified before 4254acb there may be a corruption of
xattrs which is not reported during scrub and normal send/receive. It
manifests only as an error when raw sending/receiving. This happens
because currently only the raw receive path checks for discrepancies
between the dnode bonus length and the spill pointer flag.

In case we encounter a dnode whose bonus length is greater than the
predicted one, we should report an error. Modify in this regard
dnode_sync() with an assertion at the end, dump_dnode() to error out,
dsl_scan_recurse() to report errors during a scrub, and zstream to
report a warning when dumping. Also added a test to verify spill blocks
are sent correctly in a raw send.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #12720 
Closes #13014
2022-02-16 17:58:55 -08:00
..
.gitignore Add `zstream redup` command to convert deduplicated send streams 2020-04-10 10:39:55 -07:00
Makefile.am zstream: force-install zstreamdump link 2021-06-09 13:05:34 -07:00
zstream.c zstreamdump: replace with link to zstream 2021-06-08 14:48:58 -07:00
zstream.h Add support to decode a resume token 2020-07-23 17:44:03 -07:00
zstream_dump.c Report dnodes with faulty bonuslen 2022-02-16 17:58:55 -08:00
zstream_redup.c Suppress cppcheck invalidSyntax warninigs 2021-03-05 17:56:35 -08:00
zstream_token.c Add support to decode a resume token 2020-07-23 17:44:03 -07:00