diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-10 23:03:34 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-10 23:03:34 +0100 |
commit | ac6449bee9b40b0e8131005dc0cbe2d91a070ae2 (patch) | |
tree | c6fbae3590101320aa6c1c6748cdde0d8c8f1c6f /super-intel.c | |
parent | imsm: honor orom constraints for auto-layout (diff) | |
download | mdadm-ac6449bee9b40b0e8131005dc0cbe2d91a070ae2.tar.xz mdadm-ac6449bee9b40b0e8131005dc0cbe2d91a070ae2.zip |
imsm: fix spare promotion
When associating a spare take on the target's metadata version number to
satisfy future compare_super checks.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to '')
-rw-r--r-- | super-intel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c index 4372ab4f..39a29857 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1566,6 +1566,7 @@ static int compare_super_imsm(struct supertype *st, struct supertype *tst) first->anchor->num_raid_devs = sec->anchor->num_raid_devs; first->anchor->orig_family_num = sec->anchor->orig_family_num; first->anchor->family_num = sec->anchor->family_num; + memcpy(first->anchor->sig, sec->anchor->sig, MAX_SIGNATURE_LENGTH); for (i = 0; i < sec->anchor->num_raid_devs; i++) imsm_copy_dev(get_imsm_dev(first, i), get_imsm_dev(sec, i)); } |