]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
Manage: remove call to validate_geometry.
authorNeilBrown <neilb@suse.de>
Tue, 30 Jul 2013 03:45:22 +0000 (13:45 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 30 Jul 2013 03:45:22 +0000 (13:45 +1000)
commit7ccc4cc4fc6889680bbe4ec673cab3f6aa49aad3
tree509af03e40d95c181cf35d9c9ec673d8c913b191
parent0c78849f2bde13309f5df7130627f8589024a266
Manage: remove call to validate_geometry.

This call to validate_geometry is really rather gratuitous.
It is purely about the fact that super0 cannot use more than 4TB.
So just make it an explicit test - less confusing that way.

With this, validate_geometry is only called from Create, which
makes it easier to reason about.

Also validate_geometry is now never passed NULL for the 'chunk'
parameter, so we can remove those annoying tests for NULL.

Signed-off-by: NeilBrown <neilb@suse.de>
Manage.c
super-ddf.c
super-intel.c
super0.c
super1.c