From 6d6eecfce69c24c53cfad55d1b5ee59dac82e74c Mon Sep 17 00:00:00 2001 From: Christophe Varoqui Date: Fri, 7 Oct 2005 11:27:02 +0200 Subject: [PATCH] [multipath] remove uneeded map resume upon reload This sliped in recently. --- multipath/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/multipath/main.c b/multipath/main.c index 63ec981..652025a 100644 --- a/multipath/main.c +++ b/multipath/main.c @@ -610,21 +610,20 @@ domap (struct multipath * mpp) break; case ACT_RELOAD: - r = dm_addmap(DM_DEVICE_RELOAD, mpp->alias, DEFAULT_TARGET, - mpp->params, mpp->size, NULL); + r = (dm_addmap(DM_DEVICE_RELOAD, mpp->alias, DEFAULT_TARGET, + mpp->params, mpp->size, NULL) && + dm_simplecmd(DM_DEVICE_RESUME, mpp->alias)); break; default: break; } - if (r) { + if (r) /* * DM_DEVICE_CREATE or DM_DEVICE_RELOAD succeeded */ - dm_simplecmd(DM_DEVICE_RESUME, mpp->alias); dm_switchgroup(mpp->alias, mpp->nextpg); - } return r; } -- 2.7.4