mirror_zfs/cmd
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
..
arc_summary Removed Python 2 and Python 3.5- support 2022-01-13 09:51:12 -07:00
arcstat Removed Python 2 and Python 3.5- support 2022-01-13 09:51:12 -07:00
dbufstat Removed Python 2 and Python 3.5- support 2022-01-13 09:51:12 -07:00
fsck_zfs Add ShellCheck's --enable=all inside cmd/ 2022-01-06 16:07:54 -08:00
mount_zfs Use fallthrough macro 2021-09-14 10:17:54 -06:00
raidz_test raidz_test: init_rand: fix unused, remove argsused 2021-12-21 12:05:11 -08:00
vdev_id Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
zdb Replace *CTASSERT() with _Static_assert() 2022-01-26 11:38:52 -08:00
zed Add ShellCheck's --enable=all inside cmd/ 2022-01-06 16:07:54 -08:00
zfs Revert "zfs list: Allow more fields in ZFS_ITER_SIMPLE mode" 2022-01-06 11:12:53 -08:00
zfs_ids_to_path zfs_ids_to_path: print correct wrong values 2021-04-11 11:58:16 -07:00
zgenhostid Prune /*NOTREACHED*/ 2021-07-26 12:07:26 -07:00
zhack module/*.ko: prune .data, global .rodata 2022-01-14 15:37:55 -08:00
zinject zinject: cancel_one_handler: fix unused, remove argsused 2021-12-21 12:05:11 -08:00
zpool zpool: misc. cleanup 2022-02-01 16:56:52 -08:00
zpool_influxdb Fix trivial calloc(3) arguments order 2022-02-02 11:27:35 -08:00
zstream Report dnodes with faulty bonuslen 2022-02-03 14:28:19 -08:00
ztest module/*.ko: prune .data, global .rodata 2022-01-14 15:37:55 -08:00
zvol_id Use substantially more robust program exit status logic in zvol_id 2021-07-02 13:10:36 -07:00
zvol_wait Add ShellCheck's --enable=all inside cmd/ 2022-01-06 16:07:54 -08:00
Makefile.am Add ShellCheck's --enable=all inside cmd/ 2022-01-06 16:07:54 -08:00