mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
8c4f625c12
commit
6af1f61ad4
@@ -63,6 +63,7 @@ log_must eval "zdb $TESTPOOL | grep -q \"Checkpointed uberblock found\""
|
||||
log_mustnot eval "zdb -k $TESTPOOL | grep -q \"Checkpointed uberblock found\""
|
||||
log_mustnot eval "zdb $TESTPOOL | grep \"Dataset $FS1\""
|
||||
log_must eval "zdb -k $TESTPOOL | grep \"Dataset $CHECKPOINTED_FS1\""
|
||||
log_must eval "zdb -k $TESTPOOL/ | grep \"$TESTPOOL$BOGUS_SUFFIX\""
|
||||
|
||||
log_must zpool export $TESTPOOL
|
||||
|
||||
@@ -70,6 +71,7 @@ log_must eval "zdb -e $TESTPOOL | grep \"Checkpointed uberblock found\""
|
||||
log_mustnot eval "zdb -k -e $TESTPOOL | grep \"Checkpointed uberblock found\""
|
||||
log_mustnot eval "zdb -e $TESTPOOL | grep \"Dataset $FS1\""
|
||||
log_must eval "zdb -k -e $TESTPOOL | grep \"Dataset $CHECKPOINTED_FS1\""
|
||||
log_must eval "zdb -k -e $TESTPOOL/ | grep \"$TESTPOOL$BOGUS_SUFFIX\""
|
||||
|
||||
log_must zpool import $TESTPOOL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user