Dan Williams: imsm: fix spare promotion
Martin F. Krafft
madduck at alioth.debian.org
Wed Jan 27 02:04:03 UTC 2010
Module: mdadm
Branch: upstream
Commit: ac6449bee9b40b0e8131005dc0cbe2d91a070ae2
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=ac6449bee9b40b0e8131005dc0cbe2d91a070ae2
Author: Dan Williams <dan.j.williams at intel.com>
Date: Thu Dec 10 15:03:34 2009 -0700
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 at intel.com>
---
super-intel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index 4372ab4..39a2985 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));
}
More information about the pkg-mdadm-commits
mailing list