]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
Manage: Call validate_geometry when adding drive to external container
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 17 May 2021 14:39:03 +0000 (16:39 +0200)
committerJes Sorensen <jsorensen@fb.com>
Wed, 26 May 2021 11:26:34 +0000 (07:26 -0400)
commit1f5d54a06df01ca3032ca2d29159584cab7d7509
tree9c08f26bce615f9fedfc4becf9e14394756afe67
parent8662f92d71f1f88589061272606b8b673d31de05
Manage: Call validate_geometry when adding drive to external container

When adding drive to container call validate_geometry to verify whether
drive is supported and can be addded to container.

Remove unused parameters from validate_geometry_imsm_container().
There is no need to pass them.
Don't calculate freesize if it is not mandatory. Make it configurable.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Manage.c
super-ddf.c
super-intel.c