diff options
author | NeilBrown <neilb@suse.de> | 2011-03-22 07:23:17 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-03-22 07:23:17 +0100 |
commit | 7023e0b8aed8807b0c394f61a3c4ac937dbd6b86 (patch) | |
tree | 47ecc097ffa00c697833f839243279dc2043f22f /monitor.c | |
parent | mdmon: don't wait for O_EXCL when shutting down. (diff) | |
download | mdadm-7023e0b8aed8807b0c394f61a3c4ac937dbd6b86.tar.xz mdadm-7023e0b8aed8807b0c394f61a3c4ac937dbd6b86.zip |
mdmon: Stop keeping track of RAID0 (and LINEAR) arrays.
Tracking RAID0 arrays doesn't really work. There is no need,
and there are some sysfs files which won't exist when the array
appears and then won't be opened when the level is changed.
So simply ignore RAID0 and LINEAR arrays - don't add them when they
appear and if an array we are monitoring turns into one of these,
discard it promptly.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -535,7 +535,7 @@ static int wait_and_act(struct supertype *container, int nowait) /* once an array has been deactivated we want to * ask the manager to discard it. */ - if (!a->container || (a->info.array.level == 0)) { + if (!a->container) { if (discard_this) { ap = &(*ap)->next; continue; |