| 1 |
F2FS format utility |
| 2 |
--------------------- |
| 3 |
|
| 4 |
To use the f2fs filesystem, you should format the storage partition |
| 5 |
with this utility. Otherwise, you cannot mount f2fs. |
| 6 |
|
| 7 |
Before compilation |
| 8 |
------------------ |
| 9 |
|
| 10 |
You should install the following packages. |
| 11 |
- libuuid-devel or uuid-dev |
| 12 |
- autoconf |
| 13 |
- libtool |
| 14 |
- libselinux1-dev |
| 15 |
|
| 16 |
Initial compilation |
| 17 |
------------------- |
| 18 |
|
| 19 |
Before initial compilation, autoconf/automake tools should be run. |
| 20 |
|
| 21 |
# ./autogen.sh |
| 22 |
|
| 23 |
How to compile |
| 24 |
-------------- |
| 25 |
|
| 26 |
# ./configure |
| 27 |
# make |
| 28 |
# make install |
| 29 |
|
| 30 |
How to cross-compile (e.g., for ARM) |
| 31 |
------------------------------------ |
| 32 |
|
| 33 |
1. Add the below line into mkfs/Makefile.am: |
| 34 |
mkfs_f2fs_LDFLAGS = -all-static |
| 35 |
|
| 36 |
2. Add the below line into fsck/Makefile.am: |
| 37 |
fsck_f2fs_LDFLAGS = -all-static |
| 38 |
|
| 39 |
3. then, do: |
| 40 |
# LDFLAGS=--static ./configure \ |
| 41 |
--host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi |
| 42 |
# make |
| 43 |
|
| 44 |
How to run by default |
| 45 |
--------------------- |
| 46 |
|
| 47 |
$ mkfs.f2fs -l [LABEL] $DEV |
| 48 |
|
| 49 |
For more mkfs options, see the man page. |