From b92c026ddb69641b439afc1ea821d2466c44b8a9 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 17 Feb 2022 15:29:44 +0100 Subject: [PATCH] md-create: specify that the "chunk" parameter should be absent for RAID1 Recently, mdadm has started (correctly) rejecting the "chunk" parameter for RAID1; see e.g. . Update the documentation accordingly, and in the mdadm test case, move the "chunk:65536" parameter from a RAID1 creation command to a RAID5 one. Suggested-by: Richard W.M. Jones Signed-off-by: Laszlo Ersek Message-Id: <20220217142944.8213-1-lersek@redhat.com> Acked-by: Richard W.M. Jones --- generator/actions_core.ml | 3 +++ tests/md/test-mdadm.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/generator/actions_core.ml b/generator/actions_core.ml index 226fb860a..8884f3580 100644 --- a/generator/actions_core.ml +++ b/generator/actions_core.ml @@ -6566,6 +6566,9 @@ If not set, this defaults to C<0>. The chunk size in bytes. +The C parameter does not make sense, and should not be specified, +when C is C (which is the default; see below). + =item C The RAID level, which can be one of: diff --git a/tests/md/test-mdadm.sh b/tests/md/test-mdadm.sh index b961581ba..fac6c27fd 100755 --- a/tests/md/test-mdadm.sh +++ b/tests/md/test-mdadm.sh @@ -63,13 +63,13 @@ part-add /dev/sdd p $p4_start $p4_end # RAID 1. md-create r1t1 "/dev/sda1 /dev/sdb1" -md-create r1t2 "/dev/sdc1 /dev/sdd1" chunk:65536 +md-create r1t2 "/dev/sdc1 /dev/sdd1" # RAID 5. md-create r5t1 "/dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2" \ missingbitmap:0x10 nrdevices:4 spare:1 level:5 -md-create r5t2 "/dev/sda3 /dev/sdb3" missingbitmap:0x1 level:5 +md-create r5t2 "/dev/sda3 /dev/sdb3" missingbitmap:0x1 level:5 chunk:65536 md-create r5t3 "/dev/sdc3 /dev/sdd3" \ missingbitmap:0x6 nrdevices:2 spare:2 level:5