]> git.proxmox.com Git - mirror_zfs.git/commit
Skip spacemaps reading in case of pool readonly import
authorFedor Uporov <60701163+fuporovvStack@users.noreply.github.com>
Tue, 9 Nov 2021 20:50:39 +0000 (12:50 -0800)
committerGitHub <noreply@github.com>
Tue, 9 Nov 2021 20:50:39 +0000 (12:50 -0800)
commite39fe05b69e4d78311c5c25a8dc21b0b1dca2409
tree4390492925ff2e64cefbcd073fe12f4333b95980
parent345196be182ad6efe07ea21372117243ba6d7910
Skip spacemaps reading in case of pool readonly import

The only zdb utility require to read metaslab-related data during
read-only pool import because of spacemaps validation. Add global
variable which will allow zdb read spacemaps in case of readonly
import mode.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Fedor Uporov <fuporov.vstack@gmail.com>
Closes #9095
Closes #12687
cmd/zdb/zdb.c
include/sys/spa_impl.h
module/zfs/metaslab.c
module/zfs/spa.c
module/zfs/vdev.c