]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: always use set_migr_type to set type of migration
authorPrzemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Wed, 5 Oct 2011 09:59:50 +0000 (11:59 +0200)
committerNeilBrown <neilb@suse.de>
Thu, 6 Oct 2011 03:53:31 +0000 (14:53 +1100)
commitea672ee1190e3ce4e4f0a0e612f9dd1808b31c41
treee612dbe330e253e2421646610ba3a010f212cafa
parentb451aa4846c5ccca5447a6b6d45e5623b8c8e961
imsm: always use set_migr_type to set type of migration

For 'resync' besides the update of migration type (imsm_vol.migr_type
structure) additionally status (imsm_dev.status) flag is set to
DEV_VERIFY_AND_FIX. In order to clean up after migration, status flag
must be cleared. For this reason, migration type shouldn't be set
directly but via set_migr_type(). Otherwise status does not reflect
the state of array.

Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c