NAME¶btrfs-inspect-internal - query various internal information
SYNOPSIS¶btrfs inspect-internal <subcommand> <args>
DESCRIPTION¶This command group provides an interface to query internal information. The functionality ranges from a simple UI to an ioctl or a more complex query that assembles the result from several internal structures. The latter usually requires calls to privileged ioctls.
SUBCOMMAND¶dump-super [options] <device> [device...]
Show btrfs superblock information stored on given devices in textual form. By default the first superblock is printed, more details about all copies or additional backup data can be printed.
Besides verification of the filesystem signature, there are no other sanity checks. The superblock checksum status is reported, the device item and filesystem UUIDs are checked and reported.
the meaning of option -s has changed in version 4.8 to be consistent with other tools to specify superblock copy rather the offset. The old way still works, but prints a warning. Please update your scripts to use --bytenr instead. The option -i has been deprecated.
If there are multiple options specified, only the last one applies.
specify which mirror to print, valid values are 0, 1 and 2 and the superblock must be present on the device with a valid signature, can be used together with --force
dump-tree [options] <device> [device...]
Dump tree structures from a given device in textual form, expand keys to human readable equivalents where possible. This is useful for analyzing filesystem state or inconsistencies and has a positive educational effect on understanding the internal filesystem structure.
contains file names, consider that if you’re asked to send the dump for analysis. Does not contain file data.
The tree id name recognition rules:
inode-resolve [-v] <ino> <path>
resolve paths to all files with given inode number ino in a given subvolume at path, ie. all hardlinks
logical-resolve [-Pv] [-s <bufsize>] <logical> <path>
resolve paths to all files at given logical address in the linear filesystem space
min-dev-size [options] <path>
return the minimum size the device can be shrunk to, without performing any resize operation, this may be useful before executing the actual resize operation
The result is undefined for the so-called empty subvolumes (identified by inode number 2), but such a subvolume does not contain any files anyway
subvolid-resolve <subvolid> <path>
resolve the absolute path of the subvolume id subvolid
tree-stats [options] <device>
Print sizes and statistics of trees.
EXIT STATUS¶btrfs inspect-internal returns a zero exit status if it succeeds. Non zero is returned in case of failure.
AVAILABILITY¶btrfs is part of btrfs-progs. Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for further details.