]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Assemble: fix busy detection
authorDan Williams <dan.j.williams@intel.com>
Tue, 20 Jan 2009 08:36:50 +0000 (01:36 -0700)
committerroot <root@dwillia2-linux.ch.intel.com>
Tue, 20 Jan 2009 08:36:50 +0000 (01:36 -0700)
commit66afdfa977d087a9cfae3175175537affd5ac6de
tree8da3fd7898249223574de3f74b19f75d46b7d0b8
parent1ffd2840df56eab568a5744c8d8a8484a42c18e2
Assemble: fix busy detection

Use mddev_busy() as GET_ARRAY_INFO can succeed on 'clear' arrays.

Ran into this after an encountering a case where mdadm -Ss ended in
segfault (missing check for NULL return from map_by_devnum() in
sles11:Manage.c).  So, tried to stop the array by hand with echo clear >
md/array_state, after which I could not reassemble since GET_ARRAY_INFO
was succeeding.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Assemble.c