]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
src/t_stripealign.c: Use block size reported by fstatfs()
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Wed, 21 Nov 2018 16:26:46 +0000 (21:56 +0530)
committerEryu Guan <guaneryu@gmail.com>
Fri, 23 Nov 2018 06:23:52 +0000 (14:23 +0800)
commit89e42dcda50f7bc01188d39308739400a393bcee
treed0090b767bfb7d4c9ccccce7f92fe72db02e555b
parentded188b86096e2845e59dedae6050c7f254a96bb
src/t_stripealign.c: Use block size reported by fstatfs()

On ppc64le, block size reported by fstat(2) is 64k (the page size)
i.e. the "preferred I/O size". However src/t_stripealign.c requires the
actual block size of the filesystem. Hence this commit now makes use of
the block size reported by fstatfs(2) syscall.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/t_stripealign.c