]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: getinfo_super_imsm_volume() doesn't fill all disk information
authorNeilBrown <neilb@suse.de>
Thu, 14 Jul 2011 05:42:10 +0000 (15:42 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 14 Jul 2011 05:42:10 +0000 (15:42 +1000)
commitca0748fa494425dc025441a8622088126e25e61d
treeb18e84604dbf7591e4f771aa44c2780ccce168d9
parent19986c721c9ac4b353c8592998d70d0dc8860bfd
imsm: getinfo_super_imsm_volume() doesn't fill all disk information

getinfo_super_imsm_volume doesn't correctly set info.disk fields
because it doesn't know which disk to set them from.
It should be the last disk passed to add_to_super.

So add a field 'current_disk' to record this disk in add_to_super, and
use it in getinfo_super.

This allows us to remove a hack in Create.c

Signed-off-by: NeilBrown <neilb@suse.de>
Create.c
super-intel.c