summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>2019-10-04 12:07:28 +0200
committerJes Sorensen <jsorensen@fb.com>2019-10-04 17:00:40 +0200
commitb6180160f78f0182b296bdceed6419b26a6fccc7 (patch)
treeb75d211f5b95765d1439ce2efa50d150f16146e3 /super-intel.c
parentudev: allow for udev attribute reading bug. (diff)
downloadmdadm-b6180160f78f0182b296bdceed6419b26a6fccc7.tar.xz
mdadm-b6180160f78f0182b296bdceed6419b26a6fccc7.zip
imsm: save current_vol number
The imsm container_content routine will set curr_volume index in super for getting volume information. This flag has never been restored to original value, later other function may rely on it. Restore this flag to original value. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to '')
-rw-r--r--super-intel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c
index a103a3fc..e02bbd7a 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -7826,6 +7826,7 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra
int sb_errors = 0;
struct dl *d;
int spare_disks = 0;
+ int current_vol = super->current_vol;
/* do not assemble arrays when not all attributes are supported */
if (imsm_check_attributes(mpb->attributes) == 0) {
@@ -7993,6 +7994,7 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra
rest = this;
}
+ super->current_vol = current_vol;
return rest;
}