generic/095: align DIO read/writes with the supported sector size for the device
authorLuís Henriques <lhenriques@suse.de>
Mon, 11 Oct 2021 15:11:16 +0000 (16:11 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 24 Oct 2021 13:25:36 +0000 (21:25 +0800)
commit74055e9afecdab30ba0588e9c71564106275b00e
treea881b9c430ab1de95577a69563e7581d926aa236
parent668c859d37f2c87f56b2bde13f47c723170069d4
generic/095: align DIO read/writes with the supported sector size for the device

This test creates fio DIO jobs with bs=1k, which will fail when using block
devices that have logical sector size bigger than 1k (such as zram, advanced
format HDD's with 4k sectors, DASD's on mainframes with 2k sectors, etc).

Fix the test by using _min_dio_alignment instead to get the correct size.

Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/095