# \[PATCH\] mdadm -As --auto=yes fails if some of the md are already active

- From: Luca Berra \<hidden\>
- Date: 2006-08-28 11:23:30 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2006/08/6598247
- Thread: https://ratatoskr.run/linux-raid/2006/08/6598247/t.md

```text
hello, since i started forcing auto=yes to mdadm, due to udev
i discovered a small problem.

basically when starting an array the routine that should check and
create the device file in mdopen.c errors if the md is already active.
this is not needed since trying to activate an already active array is
checked further in the code path.

also i believe that running mdadm -As when all devices are active should
return with 0 exit code. (that is the reason for the hunk patching
mdadm.c)

please apply

Regards,
L.


-- 
Luca Berra -- bluca@comedia.it
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
```

## Attachments

- [mdadm-2.5.3-active.patch](https://ratatoskr.run/linux-raid/2006/08/6598247/attachment/0) (text/plain, 896 bytes)
