]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: properly handle values of sync_completed
authorAlexey Obitotskiy <aleksey.obitotskiy@intel.com>
Thu, 16 Jun 2016 09:31:37 +0000 (11:31 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 16 Jun 2016 17:58:58 +0000 (13:58 -0400)
commit0febb20c458a488460eadade74a6c283aadaf96a
treebdce059bf76535a87054bcb793d027ec76275ca7
parentb2be2b628b6305712c8df0b3a20ddddc0ac410fb
imsm: properly handle values of sync_completed

The sync_completed can be set to such values:
- two numbers of processed sectors and total during synchronization,
separated with '/';
- 'none' if synchronization process is stopped;
- 'delayed' if synchronization process is delayed.
Handle value of sync_completed not only as numbers but
also check for 'none' and 'delayed'.

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