diff options
author | NeilBrown <neilb@suse.de> | 2011-07-14 15:42:10 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-07-14 15:42:10 +1000 |
commit | ca0748fa494425dc025441a8622088126e25e61d (patch) | |
tree | b18e84604dbf7591e4f771aa44c2780ccce168d9 /Create.c | |
parent | 19986c721c9ac4b353c8592998d70d0dc8860bfd (diff) |
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>
Diffstat (limited to 'Create.c')
-rw-r--r-- | Create.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -856,15 +856,6 @@ int Create(struct supertype *st, char *mddev, /* getinfo_super might have lost these ... */ inf->disk.major = major(stb.st_rdev); inf->disk.minor = minor(stb.st_rdev); - /* FIXME the following should not be needed - * as getinfo_super is suppose to set - * them. However it doesn't for imsm, - * so we have this hack for now - */ - if (st->ss == &super_imsm) { - inf->disk.number = dnum; - inf->disk.raid_disk = dnum; - } } break; case 2: |