summaryrefslogtreecommitdiffstats
path: root/Grow.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-06-08 01:03:46 +0200
committerNeil Brown <neilb@suse.de>2005-06-08 01:03:46 +0200
commitea32955930cc63d2fa445ff00437f5f767f7a4af (patch)
tree2778cbed10cdee740eea76dde1ab2f18f2ee6a09 /Grow.c
parentAssorted fixes for bitmap related stuff (diff)
downloadmdadm-ea32955930cc63d2fa445ff00437f5f767f7a4af.tar.xz
mdadm-ea32955930cc63d2fa445ff00437f5f767f7a4af.zip
Increase max-devs on type-1 superblocks
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grow.c b/Grow.c
index 817a17a8..33e50c35 100644
--- a/Grow.c
+++ b/Grow.c
@@ -236,7 +236,7 @@ int Grow_addbitmap(char *devname, int fd, char *file, int chunk, int delay)
}
if (strcmp(file, "internal") == 0) {
int d;
- for (d=0; d< MD_SB_DISKS; d++) {
+ for (d=0; d< st->max_devs; d++) {
mdu_disk_info_t disk;
char *dv;
disk.number = d;