]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Don't corrupt 'supertype' when speculatively calling load_super1
authorNeil Brown <neilb@suse.de>
Mon, 24 Sep 2007 04:26:44 +0000 (14:26 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 24 Sep 2007 04:26:44 +0000 (14:26 +1000)
commit23dc1ae8771a5bbacf03365218bd693fb19776ba
tree588e20575a40b609313b4ce4b339e06c4e46db62
parentff7f2ebbe90131ec314bfbdbedbb93526fee12e0
Don't corrupt 'supertype' when speculatively calling load_super1

When load_super1 is trying to see which sub-version of v1 superblock
is present, failure will cause it to clear st->ss, which is not good.

So use a temporary 'super_type' for the 'test if this version works'
calls, then copy that into 'st' on success.
super1.c