Commit b21e04e
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 #175361 parent d323fbf commit b21e04e
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 | |
|---|---|---|---|
| |||
7706 | 7706 | | |
7707 | 7707 | | |
7708 | 7708 | | |
7709 | | - | |
| 7709 | + | |
| 7710 | + | |
7710 | 7711 | | |
7711 | 7712 | | |
7712 | 7713 | | |
7713 | 7714 | | |
7714 | 7715 | | |
7715 | 7716 | | |
7716 | 7717 | | |
7717 | | - | |
| 7718 | + | |
| 7719 | + | |
| 7720 | + | |
7718 | 7721 | | |
7719 | 7722 | | |
7720 | | - | |
7721 | | - | |
7722 | 7723 | | |
7723 | 7724 | | |
7724 | 7725 | | |
| |||
7749 | 7750 | | |
7750 | 7751 | | |
7751 | 7752 | | |
7752 | | - | |
7753 | | - | |
| 7753 | + | |
| 7754 | + | |
| 7755 | + | |
7754 | 7756 | | |
7755 | | - | |
| 7757 | + | |
7756 | 7758 | | |
7757 | 7759 | | |
7758 | 7760 | | |
| |||
7981 | 7983 | | |
7982 | 7984 | | |
7983 | 7985 | | |
7984 | | - | |
| 7986 | + | |
7985 | 7987 | | |
7986 | 7988 | | |
7987 | 7989 | | |
| |||
9705 | 9707 | | |
9706 | 9708 | | |
9707 | 9709 | | |
9708 | | - | |
| 9710 | + | |
9709 | 9711 | | |
9710 | 9712 | | |
9711 | 9713 | | |
| |||
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