zfs/cmd
Serapheim Dimitropoulos abd0b59e48 Livelist logic should handle dedup blkptrs
Update the logic to handle the dedup-case of consecutive
FREEs in the livelist code. The logic still ensures that
all the FREE entries are matched up with a respective
ALLOC by keeping a refcount for each FREE blkptr that we
encounter and ensuring that this refcount gets to zero
by the time we are done processing the livelist.

zdb -y no longer panics when encountering double frees

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #11480
Closes #12177
2021-09-22 15:19:08 -07:00
..
arc_summary arc_summary3: Handle overflowing value width 2020-12-23 14:34:59 -08:00
arcstat FreeBSD: Update usage of py-sysctl 2020-12-23 14:34:59 -08:00
dbufstat dbufstat: Fix warnings with Python 3.8 2020-12-23 15:11:01 -08:00
fsck_zfs Fix typos in cmd/ 2019-08-30 09:43:30 -07:00
mount_zfs cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
raidz_test cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
vdev_id vdev_id: Add error message when $CONFIG is missing 2021-01-24 16:06:58 -08:00
zdb Livelist logic should handle dedup blkptrs 2021-09-22 15:19:08 -07:00
zed cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zfs cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zfs_ids_to_path cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zgenhostid cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zhack cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zinject cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zpool cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zstream cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zstreamdump Minor `zstream redup` command fixes 2020-04-10 21:10:09 -07:00
ztest cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zvol_id cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zvol_wait zvol_wait should ignore redacted zvols 2019-11-06 10:51:19 -08:00
Makefile.am cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00