Use metadata information to calculate backup write offset. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- super-intel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/super-intel.c b/super-intel.c index fea7a3a..0d46132 100644 --- a/super-intel.c +++ b/super-intel.c @@ -7850,7 +7850,7 @@ int recover_backup_imsm(struct supertype *st, struct mdinfo *info) write_offset = ((unsigned long long) __le32_to_cpu(migr_rec->dest_1st_member_lba) + - info->data_offset) * 512; + __le32_to_cpu(map_dest->pba_of_lba0)) * 512; unit_len = __le32_to_cpu(migr_rec->dest_depth_per_unit) * 512; if (posix_memalign((void **)&buf, 512, unit_len) != 0) -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html