]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/tests: 07autoassemble
authorXiao Ni <xni@redhat.com>
Wed, 22 May 2024 08:50:53 +0000 (16:50 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 24 May 2024 08:43:06 +0000 (10:43 +0200)
commit63e99a49cc02cbe4d1777b477719078897fc8308
tree37c95463bd1e40ff9e10d3cd1f8c4d9ff60797a9
parent6e7d850a57d40e18d525d0739a4f4226f6057d91
mdadm/tests: 07autoassemble

This test is used to test stacked array auto assemble.

There are two different cases depends on if array is foreign or not.
If the array is foreign, the stacked array (md0 is on md1 and md2)
can't be assembled with name md0. Because udev rule will run when md1
and md2 are assembled and mdadm -I doesn't specify homehost. So it
will treat stacked array (md0) as foreign array and choose md127 as
the device node name (/dev/md127)

Add the case that stacked array is local.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
test
tests/07autoassemble
tests/07autoassemble.broken [deleted file]