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>
This commit is contained in:
parent
7bd59e7926
commit
b6180160f7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue