btrfs-progs: mkfs: rename nodiscard option to K
[btrfs-progs-unstable/devel.git] / man / mkfs.btrfs.8.in
blob8c157c1e71a6e5c4f79d7bf9ae74aa58cdf6ac92
1 .TH MKFS.BTRFS 8
2 .SH NAME
3 mkfs.btrfs \- create an btrfs filesystem
4 .SH SYNOPSIS
5 .B mkfs.btrfs
6 [ \fB\-A\fP\fI alloc-start\fP ]
7 [ \fB\-b\fP\fI byte-count\fP ]
8 [ \fB\-d\fP\fI data-profile\fP ]
9 [ \fB\-l\fP\fI leafsize\fP ]
10 [ \fB\-L\fP\fI label\fP ]
11 [ \fB\-m\fP\fI metadata profile\fP ]
12 [ \fB\-M\fP\fI mixed data+metadata\fP ]
13 [ \fB\-n\fP\fI nodesize\fP ]
14 [ \fB\-s\fP\fI sectorsize\fP ]
15 [ \fB\-r\fP\fI rootdir\fP ]
16 [ \fB\-K\fP ]
17 [ \fB\-h\fP ]
18 [ \fB\-V\fP ]
19 \fI device\fP [ \fIdevice ...\fP ]
20 .SH DESCRIPTION
21 .B mkfs.btrfs
22 is used to create an btrfs filesystem (usually in a disk partition, or an array
23 of disk partitions).
24 .I device
25 is the special file corresponding to the device (e.g \fI/dev/sdXX\fP ).
26 If multiple \fI devices \fP are specified, btrfs is created
27 spanning across the specified \fI devices\fP.
28 .SH OPTIONS
29 .TP
30 \fB\-A\fR, \fB\-\-alloc\-start \fIoffset\fR
31 Specify the offset from the start of the device to start the btrfs filesystem. The default value is zero, or the start of the device.
32 .TP
33 \fB\-b\fR, \fB\-\-byte\-count \fIsize\fR
34 Specify the size of the resultant filesystem. If this option is not used,
35 mkfs.btrfs uses all the available storage for the filesystem.
36 .TP
37 \fB\-d\fR, \fB\-\-data \fItype\fR
38 Specify how the data must be spanned across the devices specified. Valid
39 values are raid0, raid1, raid10 or single.
40 .TP
41 \fB\-l\fR, \fB\-\-leafsize \fIsize\fR
42 Specify the leaf size, the least data item in which btrfs stores data. The
43 default value is the page size.
44 .TP
45 \fB\-L\fR, \fB\-\-label \fIname\fR
46 Specify a label for the filesystem.
47 .TP
48 \fB\-m\fR, \fB\-\-metadata \fIprofile\fR
49 Specify how metadata must be spanned across the devices specified. Valid
50 values are raid0, raid1, raid10 or single.
51 .TP
52 \fB\-M\fR, \fB\-\-mixed\fR
53 Mix data and metadata chunks together for more efficient space 
54 utilization.  This feature incurs a performance penalty in
55 larger filesystems.  It is recommended for use with filesystems
56 of 1 GiB or smaller.
57 .TP
58 \fB\-n\fR, \fB\-\-nodesize \fIsize\fR
59 Specify the nodesize. By default the value is set to the pagesize.
60 .TP
61 \fB\-s\fR, \fB\-\-sectorsize \fIsize\fR
62 Specify the sectorsize, the minimum block allocation.
63 .TP
64 \fB\-r\fR, \fB\-\-rootdir \fIrootdir\fR
65 Specify a directory to copy into the newly created fs.
66 .TP
67 \fB\-K\fR, \fB\-\-nodiscard \fR
68 Do not perform whole device TRIM operation by default.
69 .TP
70 \fB\-V\fR, \fB\-\-version\fR
71 Print the \fBmkfs.btrfs\fP version and exit.
72 .SH AVAILABILITY
73 .B mkfs.btrfs
74 is part of btrfs-progs. Btrfs is currently under heavy development,
75 and not suitable for any uses other than benchmarking and review.
76 Please refer to the btrfs wiki
77 http://btrfs.wiki.kernel.org for further details.
78 .SH SEE ALSO
79 .BR btrfsck (8)