]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
getinfo_super now clears the 'info' structure before filling it in.
authorNeilBrown <neilb@suse.de>
Wed, 8 Jun 2011 05:54:13 +0000 (15:54 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 8 Jun 2011 05:54:13 +0000 (15:54 +1000)
commit95eeceeb32775bffd06771c81c3dee547af0d62f
treeedc54e03ccb4f86386768ef13b8b4d592876d80e
parent58b3c6976a61ed5481d3b67548b4f2fe43b86165
getinfo_super now clears the 'info' structure before filling it in.

Some code currently clears 'info' before calling getinfo_super,
some code doesn't.

To be consistent, change it so no caller ever clears 'info',
but ever getinfo_super function must clear it.

Note that ->raid_disk may be meaningful if that 'map' is passed
non-NULL.  In that case it is copied out before the structure
is zeroed.

Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c
Create.c
Incremental.c
mdadm.h
super-ddf.c
super-intel.c
super0.c
super1.c