android-platform-a71/external/f2fs-tools
2024-11-30 08:52:24 +01:00
..
fsck A715FXXUADWE1 2024-11-30 08:52:24 +01:00
include A715FXXUADWE1 2024-11-30 08:52:24 +01:00
lib A715FXXUADWE1 2024-11-30 08:52:24 +01:00
man A715FXXUADWE1 2024-11-30 08:52:24 +01:00
mkfs A715FXXUADWE1 2024-11-30 08:52:24 +01:00
scripts A715FXXUADWE1 2024-11-30 08:52:24 +01:00
tools A715FXXUADWE1 2024-11-30 08:52:24 +01:00
Android.bp A715FXXUADWE1 2024-11-30 08:52:24 +01:00
AUTHORS A715FXXUADWE1 2024-11-30 08:52:24 +01:00
autogen.sh A715FXXUADWE1 2024-11-30 08:52:24 +01:00
ChangeLog A715FXXUADWE1 2024-11-30 08:52:24 +01:00
CleanSpec.mk A715FXXUADWE1 2024-11-30 08:52:24 +01:00
configure.ac A715FXXUADWE1 2024-11-30 08:52:24 +01:00
COPYING A715FXXUADWE1 2024-11-30 08:52:24 +01:00
Makefile.am A715FXXUADWE1 2024-11-30 08:52:24 +01:00
METADATA A715FXXUADWE1 2024-11-30 08:52:24 +01:00
MODULE_LICENSE_LGPL A715FXXUADWE1 2024-11-30 08:52:24 +01:00
NOTICE A715FXXUADWE1 2024-11-30 08:52:24 +01:00
OWNERS A715FXXUADWE1 2024-11-30 08:52:24 +01:00
README A715FXXUADWE1 2024-11-30 08:52:24 +01:00
VERSION A715FXXUADWE1 2024-11-30 08:52:24 +01:00
VERSIONING A715FXXUADWE1 2024-11-30 08:52:24 +01:00

F2FS format utility
---------------------

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

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

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

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

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

 # ./autogen.sh

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

 # ./configure
 # make
 # make install

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 the man page.