]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: Fix honouring of 'auto' config line
authorNeilBrown <neilb@suse.de>
Tue, 6 Jul 2010 01:57:09 +0000 (11:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 6 Jul 2010 01:57:09 +0000 (11:57 +1000)
commite5c99c0811199a734ed0fe41784d22230922a49a
tree38312d403d91cfdc3f1ae20ff26139551a221497
parentb3b4e8a7a229cccca915421329a5319f996b0842
Assemble: Fix honouring of 'auto' config line

commit 1ff98339283645a20c980d540f6c4d82693e7daf
broke the checking of metadata types via the 'auto' line.

Be moving 'load_super" before "conf_test_metadata" we left
tst->sb set even if conf_test_metadata fails, so the device will
actually be accepted and used.

So if we decide to reject the device, free the superblock so it is
clear that it is rejected.

Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c