diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2011-06-09 13:00:55 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-09 13:00:55 +1000 |
commit | 75b69ea42012c2e0b052459ed81678845bec3399 (patch) | |
tree | b469b3d1c36506ee3eaa316890e30a9560bcc71e | |
parent | 7b1ab482f6d68f30b8d05a3d1c30d1202d67c70c (diff) | |
download | mdadm-75b69ea42012c2e0b052459ed81678845bec3399.tar.gz |
imsm: FIX: Calculate backup location based on metadata information
Use metadata information to calculate backup write offset.
Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
-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 8102720..0ac3827 100644 --- a/super-intel.c +++ b/super-intel.c @@ -7849,7 +7849,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) |