2013-01-25 08:20:16 +00:00
|
|
|
.\" Copyright (c) 2012 Samsung Electronics Co., Ltd.
|
|
|
|
.\" http://www.samsung.com/
|
|
|
|
.\" Written by Jaegeuk Kim <jaegeuk.kim@samsung.com>
|
2012-10-26 12:56:34 +00:00
|
|
|
.\"
|
2015-12-23 00:14:36 +00:00
|
|
|
.TH MKFS.F2FS 8
|
2012-10-26 12:56:34 +00:00
|
|
|
.SH NAME
|
|
|
|
mkfs.f2fs \- create an F2FS file system
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B mkfs.f2fs
|
|
|
|
[
|
|
|
|
.B \-a
|
|
|
|
.I heap-based-allocation
|
|
|
|
]
|
|
|
|
[
|
2016-11-02 00:23:40 +00:00
|
|
|
.B \-c
|
|
|
|
.I device
|
|
|
|
]
|
|
|
|
[
|
2017-03-05 13:04:46 +00:00
|
|
|
.B \-d
|
|
|
|
.I debugging-level
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-e
|
|
|
|
.I extension-list
|
|
|
|
]
|
|
|
|
[
|
2012-10-26 12:56:34 +00:00
|
|
|
.B \-l
|
|
|
|
.I volume-label
|
|
|
|
]
|
|
|
|
[
|
2017-03-05 13:04:46 +00:00
|
|
|
.B \-m
|
|
|
|
]
|
|
|
|
[
|
2012-10-26 12:56:34 +00:00
|
|
|
.B \-o
|
|
|
|
.I overprovision-ratio-percentage
|
|
|
|
]
|
|
|
|
[
|
2017-03-05 13:04:46 +00:00
|
|
|
.B \-O
|
|
|
|
.I feature-list
|
2012-10-26 12:56:34 +00:00
|
|
|
]
|
|
|
|
[
|
2017-03-05 13:04:46 +00:00
|
|
|
.B \-q
|
2012-10-26 12:56:34 +00:00
|
|
|
]
|
2013-01-25 08:20:16 +00:00
|
|
|
[
|
2017-03-05 13:04:46 +00:00
|
|
|
.B \-s
|
|
|
|
.I #-of-segments-per-section
|
2013-01-25 08:20:16 +00:00
|
|
|
]
|
|
|
|
[
|
2017-03-05 13:04:46 +00:00
|
|
|
.B \-t
|
|
|
|
.I nodiscard/discard
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-z
|
|
|
|
.I #-of-sections-per-zone
|
2013-01-25 08:20:16 +00:00
|
|
|
]
|
2012-10-26 12:56:34 +00:00
|
|
|
.I device
|
2015-12-23 00:14:36 +00:00
|
|
|
.I [sectors]
|
2012-10-26 12:56:34 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B mkfs.f2fs
|
|
|
|
is used to create a f2fs file system (usually in a disk partition).
|
|
|
|
\fIdevice\fP is the special file corresponding to the device (e.g.
|
|
|
|
\fI/dev/sdXX\fP).
|
2015-12-23 00:14:36 +00:00
|
|
|
\fIsectors\fP is optionally given for specifing the filesystem size.
|
2012-10-26 12:56:34 +00:00
|
|
|
.PP
|
|
|
|
The exit code returned by
|
|
|
|
.B mkfs.f2fs
|
|
|
|
is 0 on success and 1 on failure.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.BI \-a " heap-based-allocation"
|
|
|
|
Specify 1 or 0 to enable/disable heap based block allocation policy.
|
|
|
|
If the value is equal to 1, each of active log areas are initially
|
|
|
|
assigned separately according to the whole volume size.
|
|
|
|
The default value is 1.
|
|
|
|
.TP
|
2016-11-02 00:23:40 +00:00
|
|
|
.BI \-c " device"
|
|
|
|
Build f2fs with this device additionally, so that user can see all
|
|
|
|
the devices as one big volume.
|
|
|
|
.TP
|
2017-03-05 13:04:46 +00:00
|
|
|
.BI \-d " debug-level"
|
|
|
|
Specify the level of debugging options.
|
|
|
|
The default number is 0, which shows basic debugging messages.
|
|
|
|
.TP
|
|
|
|
.BI \-e " extension-list"
|
|
|
|
Specify a file extension list in order f2fs to treat them as cold files.
|
|
|
|
The data of files having those extensions will be stored to the cold log.
|
|
|
|
The default list includes most of multimedia file extensions such as jpg, gif,
|
|
|
|
mpeg, mkv, and so on.
|
|
|
|
.TP
|
2012-10-26 12:56:34 +00:00
|
|
|
.BI \-l " volume-label"
|
|
|
|
Specify the volume label to the partition mounted as F2FS.
|
|
|
|
.TP
|
2017-03-05 13:04:46 +00:00
|
|
|
.BI \-m
|
|
|
|
Specify f2fs filesystem to supports the block zoned feature.
|
|
|
|
Without it, the filesystem isn't supports the feature.
|
|
|
|
.TP
|
2012-10-26 12:56:34 +00:00
|
|
|
.BI \-o " overprovision-ratio-percentage"
|
|
|
|
Specify the percentage over the volume size for overprovision area. This area
|
2015-09-23 22:20:49 +00:00
|
|
|
is hidden to users, and utilized by F2FS cleaner. If not specified, the best
|
|
|
|
number will be assigned automatically accoring to the partition size.
|
2012-10-26 12:56:34 +00:00
|
|
|
.TP
|
2017-03-05 13:04:46 +00:00
|
|
|
.BI \-O " feature-list"
|
|
|
|
Specify a feature list in order f2fs filesystem will supports.
|
|
|
|
e.g "encrypt" and so on.
|
|
|
|
.TP
|
|
|
|
.BI \-q
|
|
|
|
Quiet mode.
|
|
|
|
With it, mkfs.f2fs does not show any messages include the basic messages.
|
|
|
|
.TP
|
2015-08-10 17:57:23 +00:00
|
|
|
.BI \-s " #-of-segments-per-section"
|
|
|
|
Specify the number of segments per section. A section consists of
|
2012-10-26 12:56:34 +00:00
|
|
|
multiple consecutive segments, and is the unit of garbage collection.
|
2015-08-10 17:57:23 +00:00
|
|
|
The default number is 1, which means one segment is assigned to a section.
|
2012-10-26 12:56:34 +00:00
|
|
|
.TP
|
2017-03-05 13:04:46 +00:00
|
|
|
.BI \-t " nodiscard/discard"
|
|
|
|
Specify 1 or 0 to enable/disable discard policy.
|
|
|
|
If the value is equal to 1, discard policy is enabled, otherwise is disable.
|
|
|
|
The default value is 1.
|
|
|
|
.TP
|
2012-10-26 12:56:34 +00:00
|
|
|
.BI \-z " #-of-sections-per-zone"
|
|
|
|
Specify the number of sections per zone. A zone consists of multiple sections.
|
|
|
|
F2FS allocates segments for active logs with separated zones as much as possible.
|
|
|
|
The default number is 1, which means a zone consists of one section.
|
2013-01-25 08:20:16 +00:00
|
|
|
.TP
|
2012-10-26 12:56:34 +00:00
|
|
|
.SH AUTHOR
|
|
|
|
This version of
|
|
|
|
.B mkfs.f2fs
|
|
|
|
has been written by Jaegeuk Kim <jaegeuk.kim@samsung.com>.
|
|
|
|
.SH AVAILABILITY
|
|
|
|
.B mkfs.f2fs
|
2013-01-25 08:20:16 +00:00
|
|
|
is available from git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git.
|
2012-10-26 12:56:34 +00:00
|
|
|
.SH SEE ALSO
|
2015-12-22 23:55:34 +00:00
|
|
|
.BR mkfs (8),
|
|
|
|
.BR fsck.f2fs(8),
|
|
|
|
.BR dump.f2fs(8),
|
2015-12-09 00:05:09 +00:00
|
|
|
.BR defrag.f2fs(8),
|
2015-12-10 00:18:44 +00:00
|
|
|
.BR resize.f2fs(8),
|
|
|
|
.BR sload.f2fs(8).
|