diff options
author | NeilBrown <neilb@suse.de> | 2011-06-08 07:54:13 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-08 07:54:13 +0200 |
commit | 95eeceeb32775bffd06771c81c3dee547af0d62f (patch) | |
tree | edc54e03ccb4f86386768ef13b8b4d592876d80e /Create.c | |
parent | Restore ability to create imsm array from specific devices. (diff) | |
download | mdadm-95eeceeb32775bffd06771c81c3dee547af0d62f.tar.xz mdadm-95eeceeb32775bffd06771c81c3dee547af0d62f.zip |
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>
Diffstat (limited to 'Create.c')
-rw-r--r-- | Create.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -658,8 +658,8 @@ int Create(struct supertype *st, char *mddev, goto abort; total_slots = info.array.nr_disks; - sysfs_init(&info, mdfd, 0); st->ss->getinfo_super(st, &info, NULL); + sysfs_init(&info, mdfd, 0); if (did_default && verbose >= 0) { if (is_subarray(info.text_version)) { |