'\" t
.\"     Title: btrfs-debug-tree
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: 08/13/2019
.\"    Manual: Btrfs Manual
.\"    Source: Btrfs v4.4
.\"  Language: English
.\"
.TH "BTRFS\-DEBUG\-TREE" "8" "08/13/2019" "Btrfs v4\&.4" "Btrfs Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
btrfs-debug-tree \- dump btrfs filesystem metadata into stdout
.SH "SYNOPSIS"
.sp
\fBbtrfs\-debug\-tree\fR [options] \fI<device>\fR
.SH "DESCRIPTION"
.sp
\fBbtrfs\-debug\-tree\fR is used to dump the whole tree of the given device\&.
.sp
This is maybe useful for analyzing filesystem state or inconsistence and has a positive educational effect on understanding the internal structure\&. \fI<device>\fR is the device file where the filesystem is stored\&.
.SH "OPTIONS"
.PP
\-e
.RS 4
Print detailed extents info\&.
.RE
.PP
\-d
.RS 4
Print info of btrfs device and root tree dirs only\&.
.RE
.PP
\-r
.RS 4
Print info of roots only\&.
.RE
.PP
\-b \fI<block_num>\fR
.RS 4
Print info of the specified block only\&.
.RE
.SH "EXIT STATUS"
.sp
\fBbtrfs\-debug\-tree\fR will return 0 if no error happened\&. If any problems happened, 1 will be returned\&.
.SH "SEE ALSO"
.sp
\fBmkfs\&.btrfs\fR(8)
