]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
f2fs: new test to detect and repair nlink corruption
authorChao Yu <chao@kernel.org>
Tue, 25 Mar 2025 12:58:24 +0000 (20:58 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 28 Mar 2025 01:05:05 +0000 (09:05 +0800)
commit82d0ff759c6746b1ba1ff5b4f0a55ddb7fac93ef
treebfecb705e5f00c0282c7835b7a9f62ffd9ed88cb
parentb9d1c36bcce499010d8ecd20b683f1391cf5491a
f2fs: new test to detect and repair nlink corruption

This is a regression test to check whether fsck can handle corrupted
nlinks correctly, it uses inject.f2fs to inject nlinks w/ wrong value,
and expects fsck.f2fs can detect such corruption and do the repair.

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