]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: FIX: return correct status from load_imsm_migr_rec()
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 15 Dec 2011 03:34:51 +0000 (14:34 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 15 Dec 2011 03:34:51 +0000 (14:34 +1100)
commit4c965cc9890334b5100a38a1a51a46ef1fe7fbf2
treebd4214f2c39542bdfe8fe99eea1ef4d7d3f3017a
parent97a3490c0d9eb1672a3804625d5c58bcc29a08e1
imsm: FIX: return correct status from load_imsm_migr_rec()

load_imsm_migr_rec() should see difference between no migration record due
to no migration in progress and loading migration record error.
Additional return value (-2) was introduced to this function.

Using new status load_super_imsm_all() can correctly check loading
migration record status.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c