android_mt6572_jiabo/external/f2fs-tools
2025-09-05 16:56:03 +08:00
..
fsck first commit 2025-09-05 16:56:03 +08:00
include first commit 2025-09-05 16:56:03 +08:00
lib first commit 2025-09-05 16:56:03 +08:00
m4 first commit 2025-09-05 16:56:03 +08:00
man first commit 2025-09-05 16:56:03 +08:00
mkfs first commit 2025-09-05 16:56:03 +08:00
scripts first commit 2025-09-05 16:56:03 +08:00
tools first commit 2025-09-05 16:56:03 +08:00
.gitignore first commit 2025-09-05 16:56:03 +08:00
Android.mk first commit 2025-09-05 16:56:03 +08:00
AUTHORS first commit 2025-09-05 16:56:03 +08:00
autogen.sh first commit 2025-09-05 16:56:03 +08:00
ChangeLog first commit 2025-09-05 16:56:03 +08:00
configure.ac first commit 2025-09-05 16:56:03 +08:00
COPYING first commit 2025-09-05 16:56:03 +08:00
Makefile.am first commit 2025-09-05 16:56:03 +08:00
MODULE_LICENSE_LGPL first commit 2025-09-05 16:56:03 +08:00
NOTICE first commit 2025-09-05 16:56:03 +08:00
README first commit 2025-09-05 16:56:03 +08:00
VERSION first commit 2025-09-05 16:56:03 +08:00

F2FS format utilility
---------------------

To use f2fs filesystem, you should format the storage partition
with this utilility. Otherwise, you cannot mount f2fs.

Before compilation
------------------

Your should install the following packages.
 - libuuid-devel or uuid-dev
 - pkg-config
 - autoconf
 - libtool
 - libselinux1-dev

Initial compilation
-------------------

Before compilation initially, autoconf/automake tools should be run.

 # autoreconf --install

How to compile
--------------

 # ./configure
 # make

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

How to run by default
---------------------

 $ ./mkfs.f2fs -l [LABEL] $DEV

For more mkfs options, see man page.