]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic/591: use proper sector size
authorZorro Lang <zlang@kernel.org>
Tue, 31 May 2022 07:45:01 +0000 (15:45 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 3 Jun 2022 05:06:31 +0000 (13:06 +0800)
commit627e079a5fb8cbe67c1dadbf85d8ac0477827fd5
tree13ac0ac7b2c6750e310f954518725cdc2c88608e
parent568648f14515e7345c1536a4b669178b63eec515
generic/591: use proper sector size

The generic/591 fails if the sector size of TEST_DEV isn't 512:

  splice-test: write: /mnt/test/a: Invalid argument

To fix this issue, this patch help src/splice-test.c to get a specify
sector size from the test case. Then let g/591 give it a proper
sector size which dio aligned.

Signed-off-by: Zorro Lang <zlang@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
src/splice-test.c
tests/generic/591