]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Don't associate spares with other arrays during RAID Examine
authorOleksandr Shchirskyi <oleksandr.shchirskyi@linux.intel.com>
Fri, 18 Jun 2021 13:53:32 +0000 (15:53 +0200)
committerJes Sorensen <jsorensen@fb.com>
Fri, 16 Jul 2021 14:25:45 +0000 (10:25 -0400)
commit601ffa784f03cea843b9b732e561ffea0b8c036f
tree2ed2d7ee8c5b2f0d653a5673b8faa7fcecd3b395
parent8d69bf147ec77447c5d45c17bed7dc017808cc44
Don't associate spares with other arrays during RAID Examine

Spares in imsm belong to containers, not volumes, and must go into
a separate container when assembling the RAID.
Remove association spares with other arrays and make Examine print
separate containers for spares.
Auto assemble without config file already works like this. So make
creating a config file and assembling from it consistent with auto
assemble.
With this change, mdadm -Es will add this line to output if spares
are found:
ARRAY metadata=imsm UUID=00000000:00000000:00000000:00000000

Signed-off-by: Oleksandr Shchirskyi <oleksandr.shchirskyi@linux.intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Examine.c
super-intel.c