diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2025-09-15 16:12:40 +0200 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2025-09-17 16:04:29 +0200 |
commit | a86556264696b797d94238d99d8284d0d34ed960 (patch) | |
tree | 987b99aa3a30f6f94ac5d870f21b8c90906eb644 /scripts/kernel-doc.py | |
parent | 77b8e6fbf9848d651f5cb7508f18ad0971f3ffdb (diff) |
dm-raid: don't set io_min and io_opt for raid1
These commands
modprobe brd rd_size=1048576
vgcreate vg /dev/ram*
lvcreate -m4 -L10 -n lv vg
trigger the following warnings:
device-mapper: table: 252:10: adding target device (start sect 0 len 24576) caused an alignment inconsistency
device-mapper: table: 252:10: adding target device (start sect 0 len 24576) caused an alignment inconsistency
The warnings are caused by the fact that io_min is 512 and physical block
size is 4096.
If there's chunk-less raid, such as raid1, io_min shouldn't be set to zero
because it would be raised to 512 and it would trigger the warning.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/kernel-doc.py')
0 files changed, 0 insertions, 0 deletions