]> git.proxmox.com Git - mirror_zfs.git/commit - tests/runfiles/common.run
zdb: Report bad label checksum
authorFedor Uporov <60701163+fuporovvStack@users.noreply.github.com>
Wed, 10 Nov 2021 19:22:00 +0000 (11:22 -0800)
committerGitHub <noreply@github.com>
Wed, 10 Nov 2021 19:22:00 +0000 (12:22 -0700)
commit2a9c572059e9401001bd168465aa521d83e16b32
tree1514117aff657f219290ece1346dc14d93f3fc63
parent6c8f03232aa98e950bfe187f9ff53d3541687b50
zdb: Report bad label checksum

In case if all label checksums will be invalid on any vdev, the pool
will become unimportable. From other side zdb with -l option will not
provide any useful information why it happened. Add notifications
about corrupted label checksums.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Fedor Uporov <fuporov.vstack@gmail.com>
Closes #2509
Closes #12685
cmd/zdb/zdb.c
tests/runfiles/common.run
tests/zfs-tests/include/blkdev.shlib
tests/zfs-tests/tests/functional/cli_root/zdb/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_label_checksum.ksh [new file with mode: 0755]