]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: restore backup to proper location.
authorNeilBrown <neilb@suse.de>
Fri, 6 Nov 2009 02:38:43 +0000 (13:38 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 6 Nov 2009 02:38:43 +0000 (13:38 +1100)
commit92dcdf7c01f142aec85deff9f002e59951952978
treeaf1e8c5af64fd40b7a9fe1a2142ce25cb8e00478
parentdab54dcb049952be8fa7b1058a4557671c73be02
Grow: restore backup to proper location.

The 'arraystart' is in sectors while restore_stripes requires
bytes, so we need a conversion.

Without this, backups get restored to the wrong offset.

Reported-by: "KueiHuan Chen" <kueihuan.chen@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c