Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
mdadm.3522
0001-imsm-add-handling-of-sync_action-is-equal-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-imsm-add-handling-of-sync_action-is-equal-to-idle.patch of Package mdadm.3522
From b2be2b628b6305712c8df0b3a20ddddc0ac410fb Mon Sep 17 00:00:00 2001 From: Alexey Obitotskiy <aleksey.obitotskiy@intel.com> Date: Thu, 16 Jun 2016 11:31:36 +0200 Subject: [PATCH] imsm: add handling of sync_action is equal to 'idle' After resync is stopped sync_action value become 'idle'. We treat this case as normal termination of waiting, not as error. Signed-off-by: Alexey Obitotskiy <aleksey.obitotskiy@intel.com> Reviewed-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> --- super-intel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/super-intel.c +++ b/super-intel.c @@ -10398,6 +10398,8 @@ int wait_for_reshape_imsm(struct mdinfo if (sysfs_get_str(sra, NULL, "sync_action", action, 20) > 0 && strncmp(action, "reshape", 7) != 0) { + if (strncmp(action, "idle", 4) == 0) + break; close(fd); return -1; } @@ -10407,9 +10409,9 @@ int wait_for_reshape_imsm(struct mdinfo return 1; } } while (completed < position_to_set); + close(fd); return 0; - } /*******************************************************************************
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