mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2025-02-21 11:20:55 +00:00

This patch fixes a bug in the function "f2fs_update_nat_root", where the access to the array "nat_blk->entries" was done using an index without encapsulation of the "le32_to_cpu" macro. The bug happens when trying to format an SD card in a powerpc architecture, which natively runs at big-endian mode Signed-off-by: Oded Gabbay <ogabbay@advaoptical.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
F2FS format utilility --------------------- To use f2fs filesystem, you should format the storage partition with this utilility. Otherwise, you cannot mount f2fs. Before compilation ------------------ Your should install the following packages. - libuuid-devel or uuid-dev - pkg-config - autoconf Initial compilation ------------------- Before compilation initially, autoconf/automake tools should be run. # autoreconf --install How to compile -------------- # ./configure # make How to run by default --------------------- $ ./mkfs.f2fs -l [LABEL] $DEV For more mkfs options, see man page.
Description
Languages
C
98.1%
Shell
0.7%
M4
0.6%
Makefile
0.3%
Roff
0.3%