mirror_zfs/cmd/zstream
George Amanakis f3b08dfd7f
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-03 14:28:19 -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-05-29 20:37:05 -07:00
zstream_dump.c Report dnodes with faulty bonuslen 2022-02-03 14:28:19 -08:00
zstream_redup.c libzfs: add zfs_get_underlying_type. Stop including libzfs_impl.h in cmd 2021-05-29 14:26:38 -07:00
zstream_token.c Add support to decode a resume token 2020-07-23 17:44:03 -07:00
zstream.c zstreamdump: replace with link to zstream 2021-05-21 10:16:14 -07:00
zstream.h Add support to decode a resume token 2020-07-23 17:44:03 -07:00