]> git.proxmox.com Git - mirror_zfs.git/commit
ddt: only create tables for dedup-capable checksums
authorRob Norris <rob.norris@klarasystems.com>
Thu, 1 Feb 2024 00:05:18 +0000 (11:05 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Feb 2024 19:45:55 +0000 (11:45 -0800)
commitd9619546889dfec7b0a8ee45f82671184b75ea0d
treea66db2df1126e858430d4dd5b74b76b5bbdb1eb7
parent406562c56318a9d29a5e78a6e4bdee158902cd14
ddt: only create tables for dedup-capable checksums

Most values in zio_checksum can never be used for dedup, partly because
the dedup= property only offers a limited list, but also some values (eg
ZIO_CHECKSUM_OFF) aren't real and will never be seen.

A true flag would be better than a hardcoded list, but thats more
cleanup elsewhere than I want to do right now.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: iXsystems, Inc.
Closes #15887
cmd/zdb/zdb.c
module/zfs/ddt.c