Jaegeuk Kim | e69e437 | 2013-01-25 17:20:16 +0900 | [diff] [blame] | 1 | .\" Copyright (c) 2012 Samsung Electronics Co., Ltd. |
| 2 | .\" http://www.samsung.com/ |
| 3 | .\" Written by Jaegeuk Kim <jaegeuk.kim@samsung.com> |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 4 | .\" |
Jaegeuk Kim | 41b1de6 | 2015-12-22 16:14:36 -0800 | [diff] [blame] | 5 | .TH MKFS.F2FS 8 |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 6 | .SH NAME |
| 7 | mkfs.f2fs \- create an F2FS file system |
| 8 | .SH SYNOPSIS |
| 9 | .B mkfs.f2fs |
| 10 | [ |
| 11 | .B \-a |
| 12 | .I heap-based-allocation |
| 13 | ] |
| 14 | [ |
| 15 | .B \-l |
| 16 | .I volume-label |
| 17 | ] |
| 18 | [ |
| 19 | .B \-o |
| 20 | .I overprovision-ratio-percentage |
| 21 | ] |
| 22 | [ |
| 23 | .B \-s |
Jaegeuk Kim | 6600bcf | 2015-08-10 10:57:23 -0700 | [diff] [blame] | 24 | .I #-of-segments-per-section |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 25 | ] |
| 26 | [ |
| 27 | .B \-z |
| 28 | .I #-of-sections-per-zone |
| 29 | ] |
Jaegeuk Kim | e69e437 | 2013-01-25 17:20:16 +0900 | [diff] [blame] | 30 | [ |
| 31 | .B \-e |
| 32 | .I extenstion-list |
| 33 | ] |
| 34 | [ |
| 35 | .B \-d |
| 36 | .I debugging-level |
| 37 | ] |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 38 | .I device |
Jaegeuk Kim | 41b1de6 | 2015-12-22 16:14:36 -0800 | [diff] [blame] | 39 | .I [sectors] |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 40 | .SH DESCRIPTION |
| 41 | .B mkfs.f2fs |
| 42 | is used to create a f2fs file system (usually in a disk partition). |
| 43 | \fIdevice\fP is the special file corresponding to the device (e.g. |
| 44 | \fI/dev/sdXX\fP). |
Jaegeuk Kim | 41b1de6 | 2015-12-22 16:14:36 -0800 | [diff] [blame] | 45 | \fIsectors\fP is optionally given for specifing the filesystem size. |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 46 | .PP |
| 47 | The exit code returned by |
| 48 | .B mkfs.f2fs |
| 49 | is 0 on success and 1 on failure. |
| 50 | .SH OPTIONS |
| 51 | .TP |
| 52 | .BI \-a " heap-based-allocation" |
| 53 | Specify 1 or 0 to enable/disable heap based block allocation policy. |
| 54 | If the value is equal to 1, each of active log areas are initially |
| 55 | assigned separately according to the whole volume size. |
| 56 | The default value is 1. |
| 57 | .TP |
| 58 | .BI \-l " volume-label" |
| 59 | Specify the volume label to the partition mounted as F2FS. |
| 60 | .TP |
| 61 | .BI \-o " overprovision-ratio-percentage" |
| 62 | Specify the percentage over the volume size for overprovision area. This area |
Jaegeuk Kim | d464f09 | 2015-09-23 15:20:49 -0700 | [diff] [blame] | 63 | is hidden to users, and utilized by F2FS cleaner. If not specified, the best |
| 64 | number will be assigned automatically accoring to the partition size. |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 65 | .TP |
Jaegeuk Kim | 6600bcf | 2015-08-10 10:57:23 -0700 | [diff] [blame] | 66 | .BI \-s " #-of-segments-per-section" |
| 67 | Specify the number of segments per section. A section consists of |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 68 | multiple consecutive segments, and is the unit of garbage collection. |
Jaegeuk Kim | 6600bcf | 2015-08-10 10:57:23 -0700 | [diff] [blame] | 69 | The default number is 1, which means one segment is assigned to a section. |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 70 | .TP |
| 71 | .BI \-z " #-of-sections-per-zone" |
| 72 | Specify the number of sections per zone. A zone consists of multiple sections. |
| 73 | F2FS allocates segments for active logs with separated zones as much as possible. |
| 74 | The default number is 1, which means a zone consists of one section. |
Jaegeuk Kim | e69e437 | 2013-01-25 17:20:16 +0900 | [diff] [blame] | 75 | .TP |
| 76 | .BI \-e " extension-list" |
| 77 | Specify a file extension list in order f2fs to treat them as cold files. |
| 78 | The data of files having those extensions will be stored to the cold log. |
| 79 | The default list includes most of multimedia file extensions such as jpg, gif, |
| 80 | mpeg, mkv, and so on. |
| 81 | .TP |
| 82 | .BI \-d " debug-level" |
| 83 | Specify the level of debugging options. |
| 84 | The default number is 0, which shows basic debugging messages. |
| 85 | .TP |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 86 | .SH AUTHOR |
| 87 | This version of |
| 88 | .B mkfs.f2fs |
| 89 | has been written by Jaegeuk Kim <jaegeuk.kim@samsung.com>. |
| 90 | .SH AVAILABILITY |
| 91 | .B mkfs.f2fs |
Jaegeuk Kim | e69e437 | 2013-01-25 17:20:16 +0900 | [diff] [blame] | 92 | is available from git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git. |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 93 | .SH SEE ALSO |
Jaegeuk Kim | 5c47dec | 2015-12-22 15:55:34 -0800 | [diff] [blame] | 94 | .BR mkfs (8), |
| 95 | .BR fsck.f2fs(8), |
| 96 | .BR dump.f2fs(8), |
Jaegeuk Kim | 5874871 | 2015-12-08 16:05:09 -0800 | [diff] [blame] | 97 | .BR defrag.f2fs(8), |
Jaegeuk Kim | de166ee | 2015-12-09 16:18:44 -0800 | [diff] [blame] | 98 | .BR resize.f2fs(8), |
| 99 | .BR sload.f2fs(8). |