summaryrefslogtreecommitdiff
path: root/Documentation/btrfs-debug-tree.asciidoc
blob: 6d6d88489b50f03cbc23c691075ec539eaa2d089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
btrfs-debug-tree(8)
===================

NAME
----
btrfs-debug-tree - dump btrfs filesystem metadata into stdout

SYNOPSIS
--------
*btrfs-debug-tree* [options] <device>

DESCRIPTION
-----------
*btrfs-debug-tree* is used to dump the whole tree of the given device.

This is maybe useful for analyzing filesystem state or inconsistence and has
a positive educational effect on understanding the internal structure.
<device> is the device file where the filesystem is stored.

OPTIONS
-------
-e::
Print detailed extents info.
-d::
Print info of btrfs device and root tree dirs only.
-r::
Print info of roots only.
-R::
Print info of roots and root backups.
-u::
Print info of UUID tree only.
-b <block_num>::
Print info of the specified block only.
-t <tree_id>::
Print only the tree with the specified ID.


EXIT STATUS
-----------
*btrfs-debug-tree* will return 0 if no error happened.
If any problems happened, 1 will be returned.

SEE ALSO
--------
`mkfs.btrfs`(8)