]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
f2fs: check data eof after partial truncation on compressed cluster
authorChao Yu <chao@kernel.org>
Fri, 15 Aug 2025 08:14:03 +0000 (16:14 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 15 Aug 2025 16:12:13 +0000 (00:12 +0800)
commit3c4fce2127c92382d728c3e988a6e3f8af962d2b
treefb3436c35c75364e179ee12c248ab171efad617d
parent785d75ac491864442631f148d9b37115aa09e83c
f2fs: check data eof after partial truncation on compressed cluster

This is a regression testcase, it is added to check below case
and its variants:
- write 16k data into compressed file (data will be compressed)
- truncate file to 12k (truncate partial data in compressed cluster)
- truncate file to 20k
- verify data in range of [12k, 16k] to see whether data is all zero
or not

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