Add --file-layout (-f) option to zdb(8) to display the#18264
Open
kithrup wants to merge 1 commit intoopenzfs:masterfrom
Open
Add --file-layout (-f) option to zdb(8) to display the#18264kithrup wants to merge 1 commit intoopenzfs:masterfrom
kithrup wants to merge 1 commit intoopenzfs:masterfrom
Conversation
Displays the physical raidz block layout for a given file. This leverages the internal vdev_raidz_map_alloc() function to find the map of how the block data is laid out across the child disks. The column entry for each row looks like: +------------+ | D2 43 | | 6020da | +------------+ representing here the logical data column 2 that is 43 sectors high starting at sector 0x6020da. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: sean.fagan@klarasystems.com Signed-off-by: Don Brady <don.brady@klarasystems.com>
f393f71 to
2457e6b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
raidz file layout for a given file. This leverages the internal vdev_raidz_map_alloc() function to find the map of how the block data is laid out across the child disks.
The column entry for each row looks like:
+------------+
| D2 43 |
| 6020da |
+------------+
representing here the logical data column 2 that is 43 sectors high
starting at sector 0x6020da.
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: sean.fagan@klarasystems.com
Motivation and Context
This shows the layout of objects in a RAIDZ set. This was required to examine some data corruption.
Description
This leverages the internal vdev_raidz_map_alloc() function to find the map of how the block data is laid out across the child disks.
This is a re-creation of #16835
How Has This Been Tested?
I've run the ZFS tests for zdb, and I've run this particular command (
zdb -f pool/ objid) for various pool layouts and object IDs.Types of changes
Checklist:
Signed-off-by.