diff options
author | NeilBrown <neilb@suse.de> | 2009-04-14 03:11:14 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-04-14 03:11:14 +0200 |
commit | c256924e52249b52bad42963176c42601f1a08f4 (patch) | |
tree | 703992c9f376f272232395997a1a74faa58d6f15 /mapfile.c | |
parent | udev rules fix for partitions. (diff) | |
parent | mdmon: fix resync completion detection (diff) | |
download | mdadm-c256924e52249b52bad42963176c42601f1a08f4.tar.xz mdadm-c256924e52249b52bad42963176c42601f1a08f4.zip |
Merge branch 'master' of git://github.com/djbw/mdadm into devel-3.0
Conflicts:
Grow.c
mdadm.h
sysfs.c
Due to independent fixes for the "mdadm hangs if reshape finishes too quickly"
problem.
Diffstat (limited to 'mapfile.c')
-rw-r--r-- | mapfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -301,9 +301,12 @@ void RebuildMap(void) int mdp = get_mdp_major(); for (md = mdstat ; md ; md = md->next) { - struct mdinfo *sra = sysfs_read(-1, md->devnum, GET_DEVS); + struct mdinfo *sra = sysfs_read(-1, md->devnum, GET_DEVS|SKIP_GONE_DEVS); struct mdinfo *sd; + if (!sra) + continue; + for (sd = sra->devs ; sd ; sd = sd->next) { char dn[30]; int dfd; |