The current check uses an alignment of 512 bytes and will fail when the
underlying device has sectors of size 4096 bytes, as is common e.g. for
NVMe disks. So use an alignment of 4096 bytes, which is a multiple of
512 bytes and thus will cover both cases.
Reviewed: https:/ /review. openstack. org/619251 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=386e574f4ae 6ead225edd65f27 59e9aa14c4887b
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 386e574f4ae6ead 225edd65f2759e9 aa14c4887b
Author: Jens Harbott <email address hidden>
Date: Thu Nov 8 15:06:26 2018 +0000
Make supports_direct_io work on 4096b sector size
The current check uses an alignment of 512 bytes and will fail when the
underlying device has sectors of size 4096 bytes, as is common e.g. for
NVMe disks. So use an alignment of 4096 bytes, which is a multiple of
512 bytes and thus will cover both cases.
Change-Id: I5151ae01e90506 747860d9780547b 0d4ce91d8bc 2ea468a8f1ec967 b954955a63)
Closes-Bug: 1801702
Co-Authored-By: Alexandre Arents <email address hidden>
(cherry picked from commit 14d98ef1b48ca7b