NeilBrown: Grow: data_offset is in sectors, offsets[] is in bytes - convert

Martin F. Krafft madduck at alioth.debian.org
Wed Jan 27 02:03:28 UTC 2010


Module: mdadm
Branch: upstream
Commit: 14e5b4d72b4db55e688581d98ec47131554f747c
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=14e5b4d72b4db55e688581d98ec47131554f747c

Author: NeilBrown <neilb at suse.de>
Date:   Mon Nov 16 11:06:44 2009 +1100

Grow: data_offset is in sectors, offsets[] is in bytes - convert

Another missed sectors->bytes conversion.

Signed-off-by: NeilBrown <neilb at suse.de>

---

 Grow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Grow.c b/Grow.c
index 27e0d70..36c35f9 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1763,7 +1763,7 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt
 				continue;
 			st->ss->getinfo_super(st, &dinfo);
 			st->ss->free_super(st);
-			offsets[j] = dinfo.data_offset;
+			offsets[j] = dinfo.data_offset * 512;
 		}
 		printf(Name ": restoring critical section\n");
 




More information about the pkg-mdadm-commits mailing list