btrfs-progs: replace test_issubvolume() with btrfs_util_is_subvolume()
[platform/upstream/btrfs-progs.git] / Documentation / btrfs-map-logical.asciidoc
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 to stdout by 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 SEE ALSO
36 --------
37 `mkfs.btrfs`(8)