source: src/router/btrfsprogs/man/btrfsctl.8.in @ 17848

Last change on this file since 17848 was 17848, checked in by BrainSlayer, 19 months ago

btrfs progs

File size: 1.5 KB
RevLine 
[17848]1.TH BTRFSCTL 8
2.SH NAME
3btrfsctl \- control a btrfs filesystem
4.SH SYNOPSIS
5.B btrfsctl
6[ \fB\-d\fP\fI file|directory \fP ]
7[ \fB\-s\fP\fI snapshot-name directory\fP ]
8[ \fB \-S\fP\fI subvolume-name directory\fP ]
9[ \fB \-r\fP\fI [+-]size\fP ]
10[ \fB \-A\fP\fI device\fP ]
11[ \fB \-a\fP ]
12[ \fB \-c\fP ]
13.SH DESCRIPTION
14.B btrfsctl
15is used to control the filesystem and the files and directories stored. It is the tool to create a new snapshot for the filesystem.
16.SH OPTIONS
17.TP
18\fB\-d\fR \fIfile|directory\fR
19Defragment a file or a directory. If the argument is a directory, the entire b-tree under the directory is defragged.
20.TP
21\fB\-s\fR \fIsnapshot-name directory\fR
22Creates a new \fIsnapshot\fP of the \fIdirectory\fP specified.
23.TP
24\fB\-S\fR \fIsubvolume-name directory\fR
25Creates a new subvolume.
26.TP
27\fB\-r\fR \fI[+|-]size\fR
28Resizes the filesystem with the \fIsize\fP specified. If the value is preceded with a signed symbol, the filesystem is resized with respect to the current filesystem size. \fIsize\fP can be suffixed by k,m or g to represent kilobytes, megabytes, or gigabytes respectively.
29.TP
30\fB\-A\fR \fIdevice\fR
31Scans the \fIdevice\fR for btrfs filesystem.
32.TP
33\fB\-a\fR
34Scans all devices present in the system for btrfs filesystem.
35.TP
36\fB\-c\fR
37Forces a filesystem sync.
38.SH AVAILABILITY
39.B btrfsctl
40is part of btrfs-progs. Btrfs is currently under heavy development,
41and not suitable for any uses other than benchmarking and review.
42Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
43further details.
44.SH SEE ALSO
45.BR mkfs.btrfs (8)
Note: See TracBrowser for help on using the repository browser.