forked from pool/mdadm
702c57405a
run "mdadm --monitor" from systemd instead of init.d sciprt (bnc#849523) - remove mdadmd due to above. - udev-rules-try-mdadm-I-on-change-events.patch (bnc#851993) - policy-NULL-path-isn-t-really-acceptable-use-the-dev.patch - DDF-really-ignore-DDF-metadata-on-partitions.patch - Assemble-avoid-infinite-loop-when-auto-assembling-pa.patch - DDF-fix-detection-of-failed-devices-during-assembly.patch - Grow-fix-problems-with-prematurely-aborting-of-resha.patch - IMSM-don-t-crash-when-creating-an-array-with-missing.patch - mdmon-don-t-complain-about-notifying-parent-when-the.patch - systemd-mdmon-set-IMSM_NO_PLATFORM-1.patch - mdmon-.service-remove-over-ride-of-Standard-IO.patch Various upstream bug fixes. OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=101
26 lines
808 B
Diff
26 lines
808 B
Diff
From 1ca5c8e0c74946f4fcd74e97c5f48fba482d9596 Mon Sep 17 00:00:00 2001
|
|
From: NeilBrown <neilb@suse.de>
|
|
Date: Tue, 21 Jan 2014 09:40:02 +1100
|
|
Subject: [PATCH 10/13] IMSM: don't crash when creating an array with missing
|
|
devices.
|
|
|
|
'missing' devices are in a different list so when collection the
|
|
serial numbers of all devices we need to check both lists.
|
|
|
|
Signed-off-by: NeilBrown <neilb@suse.de>
|
|
---
|
|
super-intel.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- mdadm-3.3.orig/super-intel.c
|
|
+++ mdadm-3.3/super-intel.c
|
|
@@ -5210,6 +5210,8 @@ static int create_array(struct supertype
|
|
int idx = get_imsm_disk_idx(dev, i, MAP_X);
|
|
|
|
disk = get_imsm_disk(super, idx);
|
|
+ if (!disk)
|
|
+ disk = get_imsm_missing(super, idx);
|
|
serialcpy(inf[i].serial, disk->serial);
|
|
}
|
|
append_metadata_update(st, u, len);
|