f2fs-tools/fsck
Sheng Yong b7b6cacc34 fsck.f2fs: fix incorrect parent blkaddr when adding lost dots
If dot or dotdot is lost, fsck tries to add a new dentry by
f2fs_add_link(). The blkaddr of the directory inode should be
passed to it in order to update the dirty inode at the right
place. This patch fixes the uninitialized `blkaddr' to avoid
corrupting f2fs image.

Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-10-28 17:44:43 +00:00
..
common.h fsck.f2fs: support quota 2017-11-06 20:07:40 -08:00
compress.c f2fs-tools: fix build error on lz4-1.9.4 2022-09-07 19:08:56 -07:00
compress.h f2fs-tools:sload.f2fs compression support 2020-12-23 11:32:31 -08:00
defrag.c f2fs-tools: add write hint support 2024-10-11 22:49:52 +00:00
dict.c Remove unnecessary config.h 2022-05-25 15:40:30 -07:00
dict.h fsck.f2fs: support quota 2017-11-06 20:07:40 -08:00
dir.c f2fs-tools: add write hint support 2024-10-11 22:49:52 +00:00
dqblk_v2.h fsck.f2fs: support quota 2017-11-06 20:07:40 -08:00
dump.c mkfs.f2fs: add device aliasing feature 2024-10-11 22:49:52 +00:00
f2fs.h f2fs-tools: remove obsolete fields in struct f2fs_sb_info 2024-02-23 14:59:17 -08:00
fsck.c fsck.f2fs: fix incorrect parent blkaddr when adding lost dots 2024-10-28 17:44:43 +00:00
fsck.h mkfs.f2fs: add device aliasing feature 2024-10-11 22:49:52 +00:00
inject.c f2fs-tools: add write hint support 2024-10-11 22:49:52 +00:00
inject.h inject.f2fs: add dentry injection 2024-10-11 22:49:52 +00:00
main.c mkfs.f2fs: add device aliasing feature 2024-10-11 22:49:52 +00:00
Makefile.am inject.f2fs: install makefile 2024-07-31 20:28:05 +00:00
mkquota.c f2fs-tools: use F2FS_BLKSIZE by default 2023-10-28 16:42:59 -07:00
mount.c f2fs-tools: add write hint support 2024-10-11 22:49:52 +00:00
node.c f2fs-tools: add write hint support 2024-10-11 22:49:52 +00:00
node.h f2fs-tools: support zoned ufs devices 2023-11-30 12:04:42 -08:00
quotaio_tree.c Remove unnecessary config.h 2022-05-25 15:40:30 -07:00
quotaio_tree.h Remove unnecessary __attribute__((packed)) annotations 2022-04-22 11:43:13 -07:00
quotaio_v2.c Remove unnecessary config.h 2022-05-25 15:40:30 -07:00
quotaio_v2.h Remove unnecessary __attribute__((packed)) annotations 2022-04-22 11:43:13 -07:00
quotaio.c Remove unnecessary config.h 2022-05-25 15:40:30 -07:00
quotaio.h Fix the MinGW build 2022-04-22 11:43:14 -07:00
resize.c f2fs-tools: add write hint support 2024-10-11 22:49:52 +00:00
segment.c f2fs-tools: add write hint support 2024-10-11 22:49:52 +00:00
sload.c Fix format strings in log messages 2022-09-07 19:08:38 -07:00
xattr.c f2fs-tools: add write hint support 2024-10-11 22:49:52 +00:00
xattr.h dump.f2fs: support to dump fsverity xattr info in print_xattr_entry() 2023-07-21 12:19:29 -07:00