]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: small cleanup of error checking.
authorNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:58:05 +0000 (20:58 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:58:05 +0000 (20:58 +1100)
commitd68ea4d775b3d447acb4b4ffaff4a1a159f9acef
tree53b8da3215310d3961ff0cbd86d2b96fc64fcf62
parent47c74f3f50201e057bac74ed107c9eaba55e5f13
Assemble: small cleanup of error checking.

If we get an early error (e.g. not a block device) we need to
not continue through and check e.g. uuid.

Also make sure we set used=2 whenever we find an error, and don't
bother with ->free_super as 'goto loop' does that.

Now that we abort earlier, we can remove lots of tests on
  tst && tst->sb

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