diff options
author | Jes Sorensen <jsorensen@fb.com> | 2017-05-05 18:18:29 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-05-05 18:18:29 +0200 |
commit | 00e56fd9537e1f69583d8b0f60faf02026f24d1b (patch) | |
tree | cd1759c8902bec6d5c64a37aa3e538de0f741bc1 /Incremental.c | |
parent | container_members_max_degradation: Switch to using syfs for disk info (diff) | |
download | mdadm-00e56fd9537e1f69583d8b0f60faf02026f24d1b.tar.xz mdadm-00e56fd9537e1f69583d8b0f60faf02026f24d1b.zip |
IncrementalScan: Use md_array_active() instead of md_get_array_info()
This eliminates yet another case where GET_ARRAY_INFO was used to
indicate whether the array was active.
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Incremental.c b/Incremental.c index b73eabd7..680d3185 100644 --- a/Incremental.c +++ b/Incremental.c @@ -1317,7 +1317,6 @@ int IncrementalScan(struct context *c, char *devnm) restart: for (me = mapl ; me ; me = me->next) { - mdu_array_info_t array; struct mdinfo *sra; int mdfd; @@ -1362,7 +1361,7 @@ restart: rv = 1; continue; } - if (md_get_array_info(mdfd, &array) == 0 || errno != ENODEV) { + if (md_array_active(mdfd)) { close(mdfd); continue; } |