]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: set component size prior to array size
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Mon, 5 Jun 2017 14:09:44 +0000 (16:09 +0200)
committerJes Sorensen <jsorensen@fb.com>
Mon, 5 Jun 2017 15:06:35 +0000 (11:06 -0400)
commit07c45a1871df0a70beb8da80d11601d33c7a5de2
treee3f36b145698f9ed0d019f35072c8a219e45a845
parentea1c4a8722605da9c2ce5dd1a8324b4f23a34b7a
Grow: set component size prior to array size

It is a partial revert of commit 758b327cf5a7 ("Grow: Remove unnecessary
optimization"). For native metadata component size is set in kernel for
entire disk space. As external metadata supports multiple arrays within
one disk, the component size is set to array size. If component size is
not updated prior to array size update, the grow operation fails.

Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Grow.c