]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
f2fs: do sanity check on mapping table
authorChao Yu <chao@kernel.org>
Fri, 15 Aug 2025 08:14:04 +0000 (16:14 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 15 Aug 2025 16:12:13 +0000 (00:12 +0800)
commit7d38f690bf8556345cd1c499d87946327b40247d
tree3d557cea5ea2ed9e636a8f11eb2f46e4a81fe8f1
parent3c4fce2127c92382d728c3e988a6e3f8af962d2b
f2fs: do sanity check on mapping table

This is a regression test:
1. create a file
2. write file to create a direct node at special offset
3. use inject.f2fs to inject nid of direct node w/ ino of the inode
4. check whether f2fs kernel module will detect and report such
   corruption in the fil

Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/f2fs/019 [new file with mode: 0755]
tests/f2fs/019.out [new file with mode: 0644]