diff options
author | Oleksandr Shchirskyi <oleksandr.shchirskyi@linux.intel.com> | 2021-06-18 15:53:32 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2021-07-16 16:25:45 +0200 |
commit | 601ffa784f03cea843b9b732e561ffea0b8c036f (patch) | |
tree | 2ed2d7ee8c5b2f0d653a5673b8faa7fcecd3b395 /Examine.c | |
parent | Remove Spare drives line from details for external metadata (diff) | |
download | mdadm-601ffa784f03cea843b9b732e561ffea0b8c036f.tar.xz mdadm-601ffa784f03cea843b9b732e561ffea0b8c036f.zip |
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>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -166,7 +166,7 @@ int Examine(struct mddev_dev *devlist, int newline = 0; ap->st->ss->brief_examine_super(ap->st, c->verbose > 0); - if (ap->spares) + if (ap->spares && !ap->st->ss->external) newline += printf(" spares=%d", ap->spares); if (c->verbose > 0) { newline += printf(" devices"); |