diff options
author | Anna Czarnowska <anna.czarnowska@intel.com> | 2010-12-26 11:59:31 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-12-26 11:59:31 +0100 |
commit | 22e263f64a7c1075f162615b700676514efca3c5 (patch) | |
tree | 2660519e0321bd5d1eac471d937ad34dbd5f66b3 /Detail.c | |
parent | Enable tests for OLCE, takeover, migrations for imsm metadata (diff) | |
download | mdadm-22e263f64a7c1075f162615b700676514efca3c5.tar.xz mdadm-22e263f64a7c1075f162615b700676514efca3c5.zip |
imsm: set imsm spare uuid to 0
uuid_match_any is replaced by uuid_zero for imsm spares.
Function fixup_container_spare_uuid not needed as it gives
unwanted uuid to spares.
Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -159,16 +159,16 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) continue; } /* some formats (imsm) have free-floating-spares - * with a uuid of uuid_match_any, they don't + * with a uuid of uuid_zero, they don't * have very good info about the rest of the * container, so keep searching when * encountering such a device. Otherwise, stop * after the first successful call to * ->load_super. */ - if (memcmp(uuid_match_any, + if (memcmp(uuid_zero, info->uuid, - sizeof(uuid_match_any)) == 0) { + sizeof(uuid_zero)) == 0) { st->ss->free_super(st); continue; } |