]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: fix first volume autolayout with IMSM_NO_PLATFORM
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Thu, 23 May 2024 10:06:36 +0000 (12:06 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 28 May 2024 15:19:38 +0000 (17:19 +0200)
commit46f19270265fe54cda1c728cb156b755273b4ab6
tree5c736901750b0f12d7dfb962805480828249913a
parent9dbd11e091f84eb0bf9d717283774816c4c4453d
imsm: fix first volume autolayout with IMSM_NO_PLATFORM

Autolayout_imsm() is not executed if IMSM_NO_PLATFORM=1 is set.
This causes that first volume cannot be created. Disk for new volume are
never configured.

Fix it by making autolayout_imsm() independent from super->orom because
NULL there means that IMSM_NO_PLATFORM=1 is set. There are not platform
restrictions to create volume, we just analyze drives. It is safe.

Fixes: 6d4d9ab295de ("imsm: use same slot across container")
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
super-intel.c