Add btrfs helpers#608
Open
morbidrsa wants to merge 2 commits intoosandov:mainfrom
Open
Conversation
Add btrfs helpers to drgn. Currently this only consists of btrfs_header(eb) to get ``struct btrfs_header`` from an extent_buffer and BRTFS_EXTENT_BUFFER_FLAGS to be able to pretty print an extent_buffer's flags using drgn's decode_flags() function. Also add BTRFS_BLOCK_GROUP_FLAGS and BTRFS_BLOCK_GROUP_RUNTIME_FLAGS to decode the flags and runtime flags of a ``struct btrfs_block_group``. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Now that drgn.helpers.linux.btrfs is there and has BTRFS_BLOCK_GROUP_RUNTIME_FLAGS as well as BTRFS_BLOCK_GROUP_RUNTIME_FLAGS definitions, use the ones built-in in dump_btrfs_bgs.py. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Owner
|
Thanks for this! I'm out of the office until March 30, so I'll take a look when I get back. |
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.
First small batch of helpers for debugging btrfs with drgn.