diff options
author | NeilBrown <neilb@suse.de> | 2011-02-01 03:07:36 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-02-01 03:07:36 +0100 |
commit | e5e5d7cea390fd33d6be09ee6d8a47bc7695eb50 (patch) | |
tree | 1497f6c85b342cef648c1977401708f981598fbb /util.c | |
parent | free_super after assembling a container (diff) | |
download | mdadm-e5e5d7cea390fd33d6be09ee6d8a47bc7695eb50.tar.xz mdadm-e5e5d7cea390fd33d6be09ee6d8a47bc7695eb50.zip |
Incr: don't exclude 'active' devices from auto inclusion in a container.
For containers, it is always appropriate to include a device in the
container.
Whether it should then be included in an array is a separate question.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to '')
-rw-r--r-- | util.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1490,8 +1490,7 @@ int is_subarray_active(char *subarray, char *container) for (ent = mdstat; ent; ent = ent->next) if (is_container_member(ent, container)) - if (!subarray || - strcmp(to_subarray(ent, container), subarray) == 0) + if (strcmp(to_subarray(ent, container), subarray) == 0) break; free_mdstat(mdstat); @@ -1499,11 +1498,6 @@ int is_subarray_active(char *subarray, char *container) return ent != NULL; } -int is_container_active(char *container) -{ - return is_subarray_active(NULL, container); -} - /* open_subarray - opens a subarray in a container * @dev: container device name * @st: empty supertype |