diff options
author | NeilBrown <neilb@suse.com> | 2016-01-28 01:44:27 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2016-01-28 01:44:27 +0100 |
commit | ac92b44a8736071fef61116d04b4e1bfebee30ab (patch) | |
tree | 9b9e04fe4a439c564bba90dca7f249c4229ee26c /super1.c | |
parent | util: fix wrong return value of cluster_get_dlmlock (diff) | |
download | mdadm-ac92b44a8736071fef61116d04b4e1bfebee30ab.tar.xz mdadm-ac92b44a8736071fef61116d04b4e1bfebee30ab.zip |
super1: fix calculation of space_before
This code was meant to update 'earliest' but clearly never doesn't.
This bug would only affect an array with a very large bitmap so it is unlikely
to be significant.
Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -979,7 +979,7 @@ static void getinfo_super1(struct supertype *st, struct mdinfo *info, char *map) size /= 512; bmend += size; if (bmend > earliest) - bmend = earliest; + earliest = bmend; } if (sb->bblog_offset && sb->bblog_size) { unsigned long long bbend = super_offset; |