6 btrfs - control a btrfs filesystem
10 *btrfs* <command> [<args>]
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.
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*.
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.
33 Create/delete/list/manage btrfs subvolume. +
34 See `btrfs-subvolume`(8) for details.
37 Manage a btrfs filesystem, including label setting/sync and so on. +
38 See `btrfs-filesystem`(8) for details.
40 *[filesystem] balance*::
41 Balance btrfs filesystem chunks across single or several devices. +
42 See `btrfs-balance`(8) for details.
45 Manage devices managed by btrfs, including add/delete/scan and so
47 See `btrfs-device`(8) for details.
50 Scrub a btrfs filesystem. +
51 See `btrfs-scrub`(8) for details.
54 Do off-line check on a btrfs filesystem. +
55 See `btrfs-check`(8) for details.
58 Try to rescue damaged btrfs filesystem. +
59 See `btrfs-rescue`(8) for details.
62 Manage a btrfs filesystem, including label setting/sync and so on. +
63 See `btrfs-restore`(8) for details.
66 Debug tools for developers/hackers. +
67 See `btrfs-inspect-internal`(8) for details.
70 Send subvolume data to stdout/file for backup and etc. +
71 See `btrfs-send`(8) for details.
74 Receive subvolume data from stdin/file for restore and etc. +
75 See `btrfs-receive`(8) for details.
77 Manage quota on btrfs filesystem like enabling/rescan and etc. +
78 See `btrfs-quota`(8) and `btrfs-qgroup`(8) for details.
81 Manage quota group(qgroup) for btrfs filesystem. +
82 See `btrfs-qgroup`(8) for details.
85 Replace btrfs devices. +
86 See `btrfs-replace`(8) for details.
90 *btrfs* returns a zero exist status if it succeeds. Non zero is returned in
95 *btrfs* is part of btrfs-progs.
96 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
101 `mkfs.btrfs`(8), `ionice`(1),
102 `btrfs-subvolume`(8),
103 `btrfs-filesystem`(8),
110 `btrfs-inspect-internal`(8),