]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
f2fs/011: test to check out-of-space issue
authorChao Yu <chao@kernel.org>
Thu, 27 Mar 2025 05:50:51 +0000 (13:50 +0800)
committerZorro Lang <zlang@kernel.org>
Sat, 26 Apr 2025 12:53:52 +0000 (20:53 +0800)
commit22cffc73853bc72d35ec0da4921d1110963bec9d
treed079832e72ed1eee8f3108f62d8b61b6f225d92d
parent1f5cccd39e762660af8ccde4155897ba615857fd
f2fs/011: test to check out-of-space issue

This is a regression testcase to check whether we will handle
out-of-space case correctly during fallocate() on pinned file
once we disable checkpoint.

Testcase:
1. mount f2fs w/ checkpoint=disable option
2. create fragmented file data
3. set flag w/ pinned flag
4. fallocate space for pinned file, expects panic due to running
out of space.

We should apply both commit ("f2fs: fix to avoid panic once
fallocation fails for pinfile") and commit ("f2fs: fix to avoid
running out of free segments") to avoid system panic.
Note that w/ these two commit, we fixed such issue in both
convential and zoned block device.

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/011 [new file with mode: 0755]
tests/f2fs/011.out [new file with mode: 0644]