diff options
author | Neil Brown <neilb@suse.de> | 2005-07-29 00:20:11 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-07-29 00:20:11 +0000 |
commit | 699f98994969ef46c1ad19f035c196744f3d65b9 (patch) | |
tree | 77db84216bb7d1fe4a498124247efa408c2e1917 | |
parent | 60d9a174557f5ca8fb580e498c3f6a7259fbd075 (diff) | |
download | mdadm-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>
-rw-r--r-- | Build.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |