Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
mdadm.1500
0001-Manage-fix-test-for-is-array-failed.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Manage-fix-test-for-is-array-failed.patch of Package mdadm.1500
Git-commit: d180d2aa2a1770af1ab8520d6362ba331400512f From: NeilBrown <neilb@suse.de> Date: Wed, 6 May 2015 15:03:50 +1000 Subject: [PATCH] Manage: fix test for 'is array failed'. References: bsc#958597 We 'active_disks' does not count spares, so if array is rebuilding, this will not necessarily find all devices, so may report an array as failed when it isn't. Counting up to nr_disks is better. Signed-off-by: NeilBrown <neilb@suse.de> --- Manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Manage.c +++ b/Manage.c @@ -854,7 +854,7 @@ int Manage_add(int fd, int tfd, struct m int d; int found = 0; - for (d = 0; d < MAX_DISKS && found < array->active_disks; d++) { + for (d = 0; d < MAX_DISKS && found < array->nr_disks; d++) { disc.number = d; if (ioctl(fd, GET_DISK_INFO, &disc)) continue;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor