HomeFreeBSD

Fix zdb pool/ with -k

Description

Fix zdb pool/ with -k

When examining the root dataset with zdb -k, we get into a mismatched
state. main() knows we are not examining the whole pool, but it strips
off the trailing slash. import_checkpointed_state() then thinks we are
examining the whole pool, and does not update the target path
appropriately. The fix is to directly inform import_checkpointed_state
that we are examining a filesystem, and not the whole pool.

Sponsored-by: Klara, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
Co-authored-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
Closes #17536

Details

Provenance
pcd_delphix.comAuthored on Jul 16 2025, 12:01 AM
GitHub <noreply@github.com>Committed on Jul 16 2025, 12:01 AM
Parents
rGd323fbf49c12: FreeBSD: zfs_putpages: don't undirty pages until after write completes
Branches
Unknown
Tags
Unknown