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.
This commit is contained in:
Luca Berra 2006-10-16 15:27:48 +10:00 committed by Neil Brown
parent e60c27d04e
commit 1cac4c1b55
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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,