mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 01:59:54 +00:00
6cdc192294
Usage: dump.f2fs -I [inode nid] /dev/sda This feature can be useful for some bugs caused by system crash. We not only need dump current valid node page, but alse the history data in disk, which can give some clues for status change of the inode. Signed-off-by: Yufen Yu <yuyufen@huawei.com> Reviewed-by: Chao Yu <chao@kernel.org> [Jaegeuk Kim: fix build error] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> |
||
---|---|---|
.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.