diff options
author | NeilBrown <neilb@suse.de> | 2010-11-30 08:35:36 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-30 08:35:36 +0100 |
commit | ab2bb0b62177635b3f2a7336c31a59af9d1f6308 (patch) | |
tree | 8ed0dd1318b9e12e380cf17bb78c34855a1d2915 /mdstat.c | |
parent | Assemble: call remove_partitions later. (diff) | |
download | mdadm-ab2bb0b62177635b3f2a7336c31a59af9d1f6308.tar.xz mdadm-ab2bb0b62177635b3f2a7336c31a59af9d1f6308.zip |
mdmon: don't copy an invalid chunk_size
As chunk_size in mdstat_ent is never set, we shouldn't copy
it into a->info.array.
In fact, it is safest to get rid of the field altogether.
Reported-by: "Kwolek, Adam" <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdstat.c')
-rw-r--r-- | mdstat.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -185,7 +185,6 @@ struct mdstat_ent *mdstat_read(int hold, int start) ent->resync = 0; ent->metadata_version = NULL; ent->raid_disks = 0; - ent->chunk_size = 0; ent->devcnt = 0; ent->members = NULL; |