]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: test that truncate does not spuriously return ENOSPC
authorChristoph Hellwig <hch@lst.de>
Thu, 8 May 2025 05:34:44 +0000 (07:34 +0200)
committerZorro Lang <zlang@kernel.org>
Thu, 8 May 2025 19:17:17 +0000 (03:17 +0800)
commit414de1b79cd72368d216d6f9443fbf5e10f5931c
treee37d9f80fe102b147973be62f55934080efd0e51
parentd6c292e41ccec1ad1b8335a3f339ab6ea2b2d574
xfs: test that truncate does not spuriously return ENOSPC

For zoned file systems, truncate to an offset not aligned to the block
size need to allocate a new block for zeroing the remainder.

Test that this allocation can dip into the reserved pool even when other
threads are waiting for space freed by GC.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/646 [new file with mode: 0755]
tests/xfs/646.out [new file with mode: 0644]