]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
fiemap: FIEMAP_EXTENT_LAST denotes the last record in the recordset
authorDarrick J. Wong <djwong@kernel.org>
Tue, 2 May 2023 20:08:40 +0000 (13:08 -0700)
committerZorro Lang <zlang@kernel.org>
Sun, 14 May 2023 13:52:09 +0000 (21:52 +0800)
commit6a0bba58d043040cf2d1f5430e0aeb52f5747ccd
tree6733a9a5ec18d5db596062e28200d8b1322c3af9
parentc387c694bde333fb3e1f46e09b65a7d4b5e52572
fiemap: FIEMAP_EXTENT_LAST denotes the last record in the recordset

Remove this check because FIEMAP_EXTENT_LAST denotes the last space
mapping record in the recordset of space mappings attached to the file.
That last mapping might actually map space beyond EOF, in the case of
(a) speculative post-eof preallocations, (b) stripe-aligned allocations
on XFS, or (c) realtime files in XFS.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/fiemap-tester.c