2012-10-26 12:56:34 +00:00
|
|
|
F2FS format utilility
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
To use f2fs filesystem, you should format the storage partition
|
|
|
|
with this utilility. Otherwise, you cannot mount f2fs.
|
|
|
|
|
2012-10-29 22:35:00 +00:00
|
|
|
Before compilation
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Your should install the following packages.
|
|
|
|
- libuuid-devel or uuid-dev
|
2013-01-23 17:22:13 +00:00
|
|
|
- pkg-config
|
|
|
|
- autoconf
|
2013-12-16 03:32:37 +00:00
|
|
|
- libtool
|
2015-12-10 00:18:44 +00:00
|
|
|
- libselinux1-dev
|
2012-10-29 22:35:00 +00:00
|
|
|
|
2012-10-26 12:56:34 +00:00
|
|
|
Initial compilation
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Before compilation initially, autoconf/automake tools should be run.
|
|
|
|
|
|
|
|
# autoreconf --install
|
|
|
|
|
|
|
|
How to compile
|
|
|
|
--------------
|
|
|
|
|
|
|
|
# ./configure
|
|
|
|
# make
|
|
|
|
|
2013-10-17 06:15:54 +00:00
|
|
|
How to cross-compile (e.g., for ARM)
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
1. Add the below line into mkfs/Makefile.am:
|
|
|
|
mkfs_f2fs_LDFLAGS = -all-static
|
|
|
|
|
|
|
|
2. Add the below line into fsck/Makefile.am:
|
|
|
|
fsck_f2fs_LDFLAGS = -all-static
|
|
|
|
|
|
|
|
3. then, do:
|
|
|
|
# LDFLAGS=--static ./configure \
|
|
|
|
--host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
|
|
|
|
# make
|
|
|
|
|
2012-10-26 12:56:34 +00:00
|
|
|
How to run by default
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
$ ./mkfs.f2fs -l [LABEL] $DEV
|
|
|
|
|
|
|
|
For more mkfs options, see man page.
|