table of contents
BTRFS-SEARCH-METADATA(1) | Btrfs Search Metadata | BTRFS-SEARCH-METADATA(1) |
NAME¶
btrfs-search-metadata - lookup btrfs metadata
SYNOPSIS¶
btrfs-search-metadata <subcommand> <args>
DESCRIPTION¶
The btrfs-search-metadata program can be used to execute search queries in order to look up metadata items of an online, mounted btrfs filesystem. Unlike the btrfs inspect-internal dump-tree command, which directly reads from disk, btrfs-search-metadata only uses the kernel SEARCH ioctl function.
Besides being able to get any metadata slice from any tree, there are a number of convenience presets that execute predefined search queries.
GLOBAL OPTIONS¶
- -h, --help
- Show the built-in help message and exit.
- --format keys|short|long
- Print metadata items as keys only, as a short single line per item (default), or long output with full contents of all fields.
SUBCOMMANDS¶
chunks <path>
block_groups <path>
dev_extents <path>
file <path>
inode -t|--tree <tree> --inum <inum> <path>
devices <path>
orphans <path>
dump -t|--tree <tree> [--min-key <MIN_KEY>] [--max-key <MAX_KEY>] <path>
block_group_contents --vaddr <vaddr> <path>
block_group_free_space --vaddr <vaddr> <path>
SEE ALSO¶
This program is an example of what can be done using the python-btrfs library.
Source and documentation on github: https://github.com/knorrie/python-btrfs
2020 |