summaryrefslogtreecommitdiff
path: root/Build.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-07-29 00:20:11 +0000
committerNeil Brown <neilb@suse.de>2005-07-29 00:20:11 +0000
commit699f98994969ef46c1ad19f035c196744f3d65b9 (patch)
tree77db84216bb7d1fe4a498124247efa408c2e1917 /Build.c
parent60d9a174557f5ca8fb580e498c3f6a7259fbd075 (diff)
downloadmdadm-699f98994969ef46c1ad19f035c196744f3d65b9.tar.gz
Don't for a chunk-size when "build"ing a raid1
as raid1 doesn't need chunksize Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'Build.c')
-rw-r--r--Build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build.c b/Build.c
index 3034b73..5537b46 100644
--- a/Build.c
+++ b/Build.c
@@ -133,7 +133,7 @@ int Build(char *mddev, int mdfd, int chunk, int level, int layout,
array.working_disks = raiddisks - missing_disks;
array.spare_disks = 0;
array.failed_disks = missing_disks;
- if (chunk == 0)
+ if (chunk == 0 && (level==0 || level==LEVEL_LINEAR))
chunk = 64;
array.chunk_size = chunk*1024;
array.layout = layout;