mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-22 17:49:51 +00:00
5e5c12b007
Some checks failed
CI / build (android, clang, aarch64-linux-android32) (push) Has been cancelled
CI / build (linux-clang, clang) (push) Has been cancelled
CI / build (linux-gcc, gcc) (push) Has been cancelled
CI / build (linux-mingw64-gcc, gcc, -D__USE_MINGW_ANSI_STDIO, x86_64-w64-mingw32) (push) Has been cancelled
CI / build (linux-powerpc64-gcc, gcc, powerpc64-linux-gnu) (push) Has been cancelled
CI / build (macos, clang, macos-latest) (push) Has been cancelled
CI / build (x86, linux-x86-gcc, gcc) (push) Has been cancelled
Merge pull request !59 from nieben/cancel_disk_model_and_unref_nid_log |
||
---|---|---|
.github/workflows | ||
fsck | ||
include | ||
lib | ||
m4 | ||
man | ||
mkfs | ||
scripts | ||
tools | ||
.gitignore | ||
AUTHORS | ||
autogen.sh | ||
BUILD.gn | ||
bundle.json | ||
ChangeLog | ||
config.h | ||
configure.ac | ||
COPYING | ||
License | ||
Makefile.am | ||
MODULE_LICENSE_GPL | ||
OAT.xml | ||
README.md | ||
README.OpenSource | ||
VERSION | ||
VERSIONING |
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
- 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)
-
Add the below line into mkfs/Makefile.am:
mkfs_f2fs_LDFLAGS = -all-static -
Add the below line into fsck/Makefile.am:
fsck_f2fs_LDFLAGS = -all-static -
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.