]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/201: use min_dio_alignment size to replace 512b
authorZorro Lang <zlang@redhat.com>
Mon, 21 Sep 2015 03:06:17 +0000 (13:06 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Sep 2015 03:06:17 +0000 (13:06 +1000)
commit40390963c91c85e9b23a7972571dfae584628bb2
treecf6a1eabc1851701b81fe1b64a2246d81f2d2810
parent505ca934220f884509079934625f42fc5fffd712
xfs/201: use min_dio_alignment size to replace 512b

This case use hard-code 512, but in 4k sector size device,
it will fail.

So I call _min_dio_alignment() to get the sector size, then
replace `512`.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/201