]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
super-intel: make freesize not required for chunk size migration
authorKinga Tanska <kinga.tanska@intel.com>
Fri, 28 Oct 2022 02:51:17 +0000 (04:51 +0200)
committerJes Sorensen <jes@trained-monkey.org>
Thu, 5 Jan 2023 03:40:39 +0000 (22:40 -0500)
commit071f839ea549e2a384cd13bba445245cd87e48b1
treef4c244736c12d3d79b183d56830142fc24ab7174
parent461fae7e7809670d286cc19aac5bfa861c29f93a
super-intel: make freesize not required for chunk size migration

Freesize is needed to be set for migrations where size of RAID could
be changed - expand. It tells how many free space is determined for
members. In chunk size migartion freesize is not needed to be set,
pointer shouldn't be checked if exists. This commit moves check to
condition which contains size calculations, instead of checking it
always at the first step.
Fix return value when superblock is not set.

Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
super-intel.c