Commit a4d2525
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 <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Rob Norris <[email protected]>
Signed-off-by: Paul Dagnelie <[email protected]>
Co-authored-by: Paul Dagnelie <[email protected]>
Closes openzfs#175361 parent 2e19f49 commit a4d2525
File tree
2 files changed
+13
-9
lines changed- cmd/zdb
- tests/zfs-tests/tests/functional/pool_checkpoint
2 files changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7708 | 7708 | | |
7709 | 7709 | | |
7710 | 7710 | | |
7711 | | - | |
| 7711 | + | |
| 7712 | + | |
7712 | 7713 | | |
7713 | 7714 | | |
7714 | 7715 | | |
7715 | 7716 | | |
7716 | 7717 | | |
7717 | 7718 | | |
7718 | 7719 | | |
7719 | | - | |
| 7720 | + | |
| 7721 | + | |
| 7722 | + | |
7720 | 7723 | | |
7721 | 7724 | | |
7722 | | - | |
7723 | | - | |
7724 | 7725 | | |
7725 | 7726 | | |
7726 | 7727 | | |
| |||
7751 | 7752 | | |
7752 | 7753 | | |
7753 | 7754 | | |
7754 | | - | |
7755 | | - | |
| 7755 | + | |
| 7756 | + | |
| 7757 | + | |
7756 | 7758 | | |
7757 | | - | |
| 7759 | + | |
7758 | 7760 | | |
7759 | 7761 | | |
7760 | 7762 | | |
| |||
7983 | 7985 | | |
7984 | 7986 | | |
7985 | 7987 | | |
7986 | | - | |
| 7988 | + | |
7987 | 7989 | | |
7988 | 7990 | | |
7989 | 7991 | | |
| |||
9700 | 9702 | | |
9701 | 9703 | | |
9702 | 9704 | | |
9703 | | - | |
| 9705 | + | |
9704 | 9706 | | |
9705 | 9707 | | |
9706 | 9708 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
0 commit comments