btrfs-progs: add X inode flag to btrfs(5)
[platform/upstream/btrfs-progs.git] / Documentation / btrfs-map-logical.txt
1 btrfs-map-logical(8)
2 ====================
3
4 NAME
5 ----
6 btrfs-map-logical - map btrfs logical extent to physical extent
7
8 SYNOPSIS
9 --------
10 *btrfs-map-logical* <options> <device>
11
12 DESCRIPTION
13 -----------
14 *btrfs-map-logical* can be used to find out what the physical offsets are
15 on the mirrors, the result is dumped into stdout in default.
16
17 Mainly used for debug purpose.
18
19 OPTIONS
20 -------
21 -l|--logical <logical_num>::
22 Logical extent to map.
23 -c|--copy <copy>::
24 Copy of the extent to read(usually 1 or 2).
25 -o|--output <filename>::
26 Output file to hold the extent.
27 -b|--bytes <bytes>::
28 Number of bytes to read.
29
30 EXIT STATUS
31 -----------
32 *btrfs-map-logical* will return 0 if no error happened.
33 If any problems happened, 1 will be returned.
34
35 AUTHOR
36 ------
37 Written by Shilong Wang and Wenruo Qu.
38
39 COPYRIGHT
40 ---------
41 Copyright (C) 2013 FUJITSU LIMITED.
42
43 License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>.
44
45 This is free software: you are free  to  change  and  redistribute  it. There is NO WARRANTY, to the extent permitted by law.
46
47 SEE ALSO
48 --------
49 `mkfs.btrfs`(8)