]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
Remove update_private
authorNeilBrown <neilb@suse.de>
Mon, 19 Dec 2011 23:30:34 +0000 (10:30 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 19 Dec 2011 23:30:34 +0000 (10:30 +1100)
commit81a5b4f52f0697f3c494c7ee2723e5f833b9ec51
tree3160324570095e5bbc4fb8beac108e8dddefd18b
parent67a2db324f61326157373117c78a8314c7d220e4
Remove update_private

This fields doesn't work any more as ->getinfo_super clears the info
structure at an awkward time.  So get rid of it and do it differently.

The issue is that the metadata handler cannot tell if the uuid it has
was randomly generated or explicitly requested, except on the first
call.
And we don't want to accept explicit requests for IMSM.
So when it was auto-generated, make it look distinctive by having the
same int copied in all 4 positions.  If someone requests a uuid like
that, I guess they get away with it.

Reported-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c
mdadm.h
super-intel.c