summaryrefslogtreecommitdiff
path: root/Documentation/btrfs-map-logical.8
blob: 8788ca4c294fc2f344924825bae412c2e6680fa4 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
'\" t
.\"     Title: btrfs-map-logical
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 01/23/2019
.\"    Manual: Btrfs Manual
.\"    Source: Btrfs v4.20.1
.\"  Language: English
.\"
.TH "BTRFS\-MAP\-LOGICAL" "8" "01/23/2019" "Btrfs v4\&.20\&.1" "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-map-logical \- map btrfs logical extent to physical extent
.SH "SYNOPSIS"
.sp
\fBbtrfs\-map\-logical\fR \fI<options>\fR \fI<device>\fR
.SH "DESCRIPTION"
.sp
\fBbtrfs\-map\-logical\fR can be used to find out what the physical offsets are on the mirrors, the result is dumped to stdout by default\&.
.sp
Mainly used for debug purpose\&.
.SH "OPTIONS"
.PP
\-l|\-\-logical \fI<logical_num>\fR
.RS 4
Logical extent to map\&.
.RE
.PP
\-c|\-\-copy \fI<copy>\fR
.RS 4
Copy of the extent to read(usually 1 or 2)\&.
.RE
.PP
\-o|\-\-output \fI<filename>\fR
.RS 4
Output file to hold the extent\&.
.RE
.PP
\-b|\-\-bytes \fI<bytes>\fR
.RS 4
Number of bytes to read\&.
.RE
.SH "EXIT STATUS"
.sp
\fBbtrfs\-map\-logical\fR will return 0 if no error happened\&. If any problems happened, 1 will be returned\&.
.SH "SEE ALSO"
.sp
\fBmkfs\&.btrfs\fR(8)