third_party_f2fs-tools/mkfs
Eric Biggers 25ab476727 mkfs.f2fs: catch total_zones=0 instead of crashing
Cleanly report an error instead of dividing by 0 (causing a floating
point exception) in the following case:

	truncate -s 16M img && mkfs.f2fs img

Note that this is a minimal fix; it appears that overly-small images
still cause various integer overflows in f2fs_prepare_super_block().

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
..
BUILD.gn f2fs-tools构建规范化整改 2023-06-21 09:25:04 +08:00
f2fs_format_main.c Remove unnecessary config.h 2024-04-15 11:29:16 +08:00
f2fs_format_utils.c mkfs.f2fs: fix typo 2024-04-15 11:29:16 +08:00
f2fs_format_utils.h Switch from the u_int to the uint types 2023-04-13 14:13:48 +08:00
f2fs_format.c mkfs.f2fs: catch total_zones=0 instead of crashing 2024-04-15 11:31:46 +08:00
Makefile.am lib: pass all needed include paths to libf2fs 2020-06-18 12:34:29 -07:00