btrfs-progs: add X inode flag to btrfs(5)
[platform/upstream/btrfs-progs.git] / Documentation / btrfs.txt
1 btrfs(8)
2 ========
3
4 NAME
5 ----
6 btrfs - control a btrfs filesystem
7
8 SYNOPSIS
9 --------
10 *btrfs* <command> [<args>]
11
12 DESCRIPTION
13 -----------
14 *btrfs* is used to control the filesystem and the files and directories stored.
15 It is the tool to create or destroy a snapshot or a subvolume for the
16 filesystem, to defrag a file or a directory, flush the data to the disk,
17 to resize the filesystem, to scan the device.
18
19 It is possible to abbreviate the commands unless the commands are ambiguous.
20 For example: it is possible to run *btrfs sub snaps* instead of
21 *btrfs subvolume snapshot*.
22 But *btrfs file s* is not allowed, because *file s* may be interpreted
23 both as *filesystem show* and as *filesystem sync*.
24
25 If a command is terminated by '--help', the detailed help is showed.
26 If the passed command matches more commands,
27 detailed help of all the matched commands is showed. For example
28 *btrfs dev --help* shows the help of all *device** commands.
29
30 COMMANDS
31 --------
32 *subvolume*::
33         Create/delete/list/manage btrfs subvolume. +
34         See `btrfs-subvolume`(8) for details.
35
36 *filesystem*::
37         Manage a btrfs filesystem, including label setting/sync and so on. +
38         See `btrfs-filesystem`(8) for details.
39
40 *[filesystem] balance*::
41         Balance btrfs filesystem chunks across single or several devices. +
42         See `btrfs-balance`(8) for details.
43
44 *device*::
45         Manage devices managed by btrfs, including add/delete/scan and so
46         on. +
47         See `btrfs-device`(8) for details.
48
49 *scrub*::
50         Scrub a btrfs filesystem. +
51         See `btrfs-scrub`(8) for details.
52
53 *check*::
54         Do off-line check on a btrfs filesystem. +
55         See `btrfs-check`(8) for details.
56
57 *rescue*::
58         Try to rescue damaged btrfs filesystem. +
59         See `btrfs-rescue`(8) for details.
60
61 *restore*::
62         Manage a btrfs filesystem, including label setting/sync and so on. +
63         See `btrfs-restore`(8) for details.
64
65 *inspect-internal*::
66         Debug tools for developers/hackers. +
67         See `btrfs-inspect-internal`(8) for details.
68
69 *send*::
70         Send subvolume data to stdout/file for backup and etc. +
71         See `btrfs-send`(8) for details.
72
73 *receive*::
74         Receive subvolume data from stdin/file for restore and etc. +
75         See `btrfs-receive`(8) for details.
76 *quota*::
77         Manage quota on btrfs filesystem like enabling/rescan and etc. +
78         See `btrfs-quota`(8) and `btrfs-qgroup`(8) for details.
79
80 *qgroup*::
81         Manage quota group(qgroup) for btrfs filesystem. +
82         See `btrfs-qgroup`(8) for details.
83
84 *replace*::
85         Replace btrfs devices. +
86         See `btrfs-replace`(8) for details.
87
88 EXIT STATUS
89 -----------
90 *btrfs* returns a zero exist status if it succeeds. Non zero is returned in
91 case of failure.
92
93 AVAILABILITY
94 ------------
95 *btrfs* is part of btrfs-progs.
96 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
97 further details.
98
99 SEE ALSO
100 --------
101 `mkfs.btrfs`(8), `ionice`(1),
102 `btrfs-subvolume`(8),
103 `btrfs-filesystem`(8),
104 `btrfs-balance`(8),
105 `btrfs-device`(8),
106 `btrfs-scrub`(8),
107 `btrfs-check`(8),
108 `btrfs-rescue`(8),
109 `btrfs-restore`(8),
110 `btrfs-inspect-internal`(8),
111 `btrfs-send`(8),
112 `btrfs-receive`(8),
113 `btrfs-quota`(8),
114 `btrfs-qgroup`(8),
115 `btrfs-replace`(8),