summaryrefslogtreecommitdiffstats
path: root/mdstat.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-11-30 08:35:36 +0100
committerNeilBrown <neilb@suse.de>2010-11-30 08:35:36 +0100
commitab2bb0b62177635b3f2a7336c31a59af9d1f6308 (patch)
tree8ed0dd1318b9e12e380cf17bb78c34855a1d2915 /mdstat.c
parentAssemble: call remove_partitions later. (diff)
downloadmdadm-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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mdstat.c b/mdstat.c
index bb030bf3..fdce5165 100644
--- a/mdstat.c
+++ b/mdstat.c
@@ -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;