Skip to content

Commit 036d45e

Browse files
jaegeukJaegeuk Kim
authored and
Jaegeuk Kim
committed
mkfs: Initial commit for patch v2 series
This is same as f2fs-tools-1.1.0.tar.gz, and for patch v2 in kernel. Signed-off-by: Jaegeuk Kim <[email protected]>
0 parents  commit 036d45e

14 files changed

+2564
-0
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This package has been developed by Praesto Team at Samsung Electronics Co., Ltd.

COPYING

+351
Large diffs are not rendered by default.

ChangeLog

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
f2fs-tools-1.0.0 Tue Aug 14, 2012 KST
2+
* The first release of f2fs-tools.

INSTALL

+370
Large diffs are not rendered by default.

Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Makefile.am
2+
3+
ACLOCAL_AMFLAGS = -I m4
4+
5+
SUBDIRS = man mkfs

NEWS

Whitespace-only changes.

README

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
F2FS format utilility
2+
---------------------
3+
4+
To use f2fs filesystem, you should format the storage partition
5+
with this utilility. Otherwise, you cannot mount f2fs.
6+
7+
Initial compilation
8+
-------------------
9+
10+
Before compilation initially, autoconf/automake tools should be run.
11+
12+
# autoreconf --install
13+
14+
How to compile
15+
--------------
16+
17+
# ./configure
18+
# make
19+
20+
How to run by default
21+
---------------------
22+
23+
$ ./mkfs.f2fs -l [LABEL] $DEV
24+
25+
For more mkfs options, see man page.

configure.ac

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ([2.68])
5+
AC_INIT([F2FS tools], [1.0.0], [TBD])
6+
AM_INIT_AUTOMAKE
7+
AC_CONFIG_SRCDIR([mkfs/f2fs_format.c])
8+
AC_CONFIG_HEADERS([config.h])
9+
10+
# Checks for programs.
11+
AC_PROG_CC
12+
13+
# Checks for libraries.
14+
15+
# Checks for header files.
16+
AC_CHECK_HEADERS([fcntl.h mntent.h stdlib.h string.h sys/ioctl.h sys/mount.h unistd.h])
17+
18+
# Checks for typedefs, structures, and compiler characteristics.
19+
AC_C_INLINE
20+
AC_TYPE_INT32_T
21+
AC_TYPE_INT8_T
22+
AC_TYPE_SIZE_T
23+
24+
# Checks for library functions.
25+
AC_FUNC_GETMNTENT
26+
AC_CHECK_FUNCS([getmntent memset])
27+
28+
AC_CONFIG_FILES([Makefile
29+
man/Makefile
30+
mkfs/Makefile])
31+
AC_OUTPUT

m4/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
*.m4

man/Makefile.am

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Makefile.am
2+
3+
dist_man_MANS = mkfs.f2fs.8

man/mkfs.f2fs.8

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
.\" Copyright (C) 2007-2012 Nippon Telegraph and Telephone Corporation.
2+
.\" Written by Ryusuke Konishi <[email protected]>
3+
.\"
4+
.TH MKFS.F2FS 8 "August 2012" "f2fs-tools version 1.0"
5+
.SH NAME
6+
mkfs.f2fs \- create an F2FS file system
7+
.SH SYNOPSIS
8+
.B mkfs.f2fs
9+
[
10+
.B \-a
11+
.I heap-based-allocation
12+
]
13+
[
14+
.B \-l
15+
.I volume-label
16+
]
17+
[
18+
.B \-o
19+
.I overprovision-ratio-percentage
20+
]
21+
[
22+
.B \-s
23+
.I log-based-#-of-segments-per-section
24+
]
25+
[
26+
.B \-z
27+
.I #-of-sections-per-zone
28+
]
29+
.I device
30+
.SH DESCRIPTION
31+
.B mkfs.f2fs
32+
is used to create a f2fs file system (usually in a disk partition).
33+
\fIdevice\fP is the special file corresponding to the device (e.g.
34+
\fI/dev/sdXX\fP).
35+
.PP
36+
The exit code returned by
37+
.B mkfs.f2fs
38+
is 0 on success and 1 on failure.
39+
.SH OPTIONS
40+
.TP
41+
.BI \-a " heap-based-allocation"
42+
Specify 1 or 0 to enable/disable heap based block allocation policy.
43+
If the value is equal to 1, each of active log areas are initially
44+
assigned separately according to the whole volume size.
45+
The default value is 1.
46+
.TP
47+
.BI \-l " volume-label"
48+
Specify the volume label to the partition mounted as F2FS.
49+
.TP
50+
.BI \-o " overprovision-ratio-percentage"
51+
Specify the percentage over the volume size for overprovision area. This area
52+
is hidden to users, and utilized by F2FS cleaner. The default percentage is 5%.
53+
.TP
54+
.BI \-s " log-based-#-of-segments-per-section"
55+
Specify the log-based number of segments per section. A section consists of
56+
multiple consecutive segments, and is the unit of garbage collection.
57+
The default number is 0, which means one segment is assigned to a section.
58+
.TP
59+
.BI \-z " #-of-sections-per-zone"
60+
Specify the number of sections per zone. A zone consists of multiple sections.
61+
F2FS allocates segments for active logs with separated zones as much as possible.
62+
The default number is 1, which means a zone consists of one section.
63+
.SH AUTHOR
64+
This version of
65+
.B mkfs.f2fs
66+
has been written by Jaegeuk Kim <[email protected]>.
67+
.SH AVAILABILITY
68+
.B mkfs.f2fs
69+
is available from http://sourceforge.net/projects/f2fs-tools/.
70+
.SH SEE ALSO
71+
.BR mkfs (8).

mkfs/Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Makefile.am
2+
3+
AM_CFLAGS = -Wall
4+
bin_PROGRAMS = mkfs.f2fs
5+
mkfs_f2fs_SOURCES = f2fs_format.c f2fs_format.h

0 commit comments

Comments
 (0)