]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/011: support byte-based grant heads are stored in bytes now
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Jul 2024 06:24:53 +0000 (08:24 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 26 Jul 2024 16:05:05 +0000 (00:05 +0800)
commit7cb775459424d3880fb18d5ebd31967ebe1c2965
tree614acbde07abb9a4bb67d5072df3422ea01c83f9
parent410ab2ebf3b82a582c5af489204b9bffb8743e09
xfs/011: support byte-based grant heads are stored in bytes now

New kernels where reservation grant track the actual reservation space
consumed in bytes instead of LSNs in cycle/block tuples export different
sysfs files for this information.

Adapt the test to detect which version is exported, and simply check
for a near-zero reservation space consumption for the byte based version.

Based on work from Dave Chinner.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/011