2020-12-17 04:14:57 -05:00
|
|
|
F2FS format utility
|
2012-10-26 21:56:34 +09:00
|
|
|
---------------------
|
|
|
|
|
2020-12-17 04:14:57 -05:00
|
|
|
To use the f2fs filesystem, you should format the storage partition
|
|
|
|
with this utility. Otherwise, you cannot mount f2fs.
|
2012-10-26 21:56:34 +09:00
|
|
|
|
2012-10-30 07:35:00 +09:00
|
|
|
Before compilation
|
|
|
|
------------------
|
|
|
|
|
2016-11-14 16:31:38 -08:00
|
|
|
You should install the following packages.
|
2012-10-30 07:35:00 +09:00
|
|
|
- libuuid-devel or uuid-dev
|
2013-01-24 02:22:13 +09:00
|
|
|
- autoconf
|
2013-12-16 12:32:37 +09:00
|
|
|
- libtool
|
2015-12-09 16:18:44 -08:00
|
|
|
- libselinux1-dev
|
2012-10-30 07:35:00 +09:00
|
|
|
|
2012-10-26 21:56:34 +09:00
|
|
|
Initial compilation
|
|
|
|
-------------------
|
|
|
|
|
2020-12-17 04:14:57 -05:00
|
|
|
Before initial compilation, autoconf/automake tools should be run.
|
2012-10-26 21:56:34 +09:00
|
|
|
|
2022-05-11 19:10:55 +08:00
|
|
|
./autogen.sh
|
2012-10-26 21:56:34 +09:00
|
|
|
|
|
|
|
How to compile
|
|
|
|
--------------
|
|
|
|
|
2022-05-11 19:10:55 +08:00
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
2012-10-26 21:56:34 +09:00
|
|
|
|
2013-10-17 15:15:54 +09:00
|
|
|
How to cross-compile (e.g., for ARM)
|
|
|
|
------------------------------------
|
|
|
|
|
2022-05-11 19:10:55 +08:00
|
|
|
1. Add the below line into mkfs/Makefile.am:
|
|
|
|
mkfs_f2fs_LDFLAGS = -all-static
|
2013-10-17 15:15:54 +09:00
|
|
|
|
2022-05-11 19:10:55 +08:00
|
|
|
2. Add the below line into fsck/Makefile.am:
|
|
|
|
fsck_f2fs_LDFLAGS = -all-static
|
2013-10-17 15:15:54 +09:00
|
|
|
|
2022-05-11 19:10:55 +08:00
|
|
|
3. then, do:
|
|
|
|
LDFLAGS=--static ./configure \
|
|
|
|
--host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
|
|
|
|
make
|
2013-10-17 15:15:54 +09:00
|
|
|
|
2012-10-26 21:56:34 +09:00
|
|
|
How to run by default
|
|
|
|
---------------------
|
|
|
|
|
2022-05-11 19:10:55 +08:00
|
|
|
mkfs.f2fs -l [LABEL] $DEV
|
2012-10-26 21:56:34 +09:00
|
|
|
|
2020-12-17 04:14:57 -05:00
|
|
|
For more mkfs options, see the man page.
|