diff options
author | Lukasz Florczak <lukasz.florczak@linux.intel.com> | 2022-07-22 08:43:47 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2022-07-28 16:53:47 -0400 |
commit | 42e02e613fb0b4a2c0c0d984b9e6e2933875bb44 (patch) | |
tree | f159defa97875fee251b699c0be530d7bc2118a7 | |
parent | 70f1ff4291b0388adca1f4c91918ce1175e8b360 (diff) | |
download | mdadm-42e02e613fb0b4a2c0c0d984b9e6e2933875bb44.tar.gz |
mdadm: Fix array size mismatch after grow
imsm_fix_size_mismatch() is invoked to fix the problem, but it couldn't
proceed due to migration check. This patch allows for intended behavior.
Signed-off-by: Lukasz Florczak <lukasz.florczak@linux.intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r-- | super-intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index 8ffe485c..76b947f5 100644 --- a/super-intel.c +++ b/super-intel.c @@ -11854,7 +11854,7 @@ static int imsm_fix_size_mismatch(struct supertype *st, int subarray_index) unsigned long long d_size = imsm_dev_size(dev); int u_size; - if (calc_size == d_size || dev->vol.migr_type == MIGR_GEN_MIGR) + if (calc_size == d_size) continue; /* There is a difference, confirm that imsm_dev_size is |