diff options
author | Luca Berra <bluca@comedia.it> | 2006-10-16 15:27:48 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-10-16 15:27:48 +1000 |
commit | 1cac4c1b552c576e61f18ac44838ea3df95ae98b (patch) | |
tree | 7656d82c15b9621ad872642a9eb4c18ff7ea1c02 | |
parent | e60c27d04e20944cbfd521d6ca72ab8eb8ab484d (diff) | |
download | mdadm-1cac4c1b552c576e61f18ac44838ea3df95ae98b.tar.gz mdadm-1cac4c1b552c576e61f18ac44838ea3df95ae98b.tar.xz mdadm-1cac4c1b552c576e61f18ac44838ea3df95ae98b.zip |
Don't trigger and error on -As if all arrays are already started.
From: Luca Berra <bluca@comedia.it>
Put another way, if we find any active arrays, then assume things are
going as planned.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | mdadm.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -11,6 +11,8 @@ Changes Prior to this release - Remove error in md_open if array is already active. This isn't needed and gets in the ways if an array was created e.g. in initramfs, but device doesn't yet exist in /dev. + - When --assemble --scan is run, if all arrays that could be found + have already been started, don't report an error. Changes Prior to 2.5.4 release - When creating devices in /dev/md/ create matching symlinks @@ -1033,7 +1033,7 @@ int main(int argc, char *argv[]) } if (ioctl(mdfd, GET_ARRAY_INFO, &array)>=0) /* already assembled, skip */ - ; + cnt++; else { rv |= Assemble(ss, array_list->devname, mdfd, array_list, |