]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Grow: data_offset is in sectors, offsets[] is in bytes - convert
authorNeilBrown <neilb@suse.de>
Mon, 16 Nov 2009 00:06:44 +0000 (11:06 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 16 Nov 2009 00:06:44 +0000 (11:06 +1100)
Another missed sectors->bytes conversion.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 27e0d7024c7404fac5da9c510f2057183d434c32..36c35f9c71c65b26bf544a1bd5ee11326fa824b9 100644 (file)
--- 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");