Status: ok Ignore chunk size for multipath or raid1 and set it to zero. Only set default of 64 for raid0, linear, raid4, raid5 ----------- Diffstat output ------------ ./ChangeLog | 1 + ./Create.c | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff ./ChangeLog~current~ ./ChangeLog --- ./ChangeLog~current~ 2003-07-29 10:11:22.000000000 +1000 +++ ./ChangeLog 2003-07-29 10:11:22.000000000 +1000 @@ -16,6 +16,7 @@ Changes Prior to this release probably a mistake. --force will override this check. - Correct some misleading documentation in the "mdadm --create --help" message. + - Ignore chunksize if raid1 or multipath. Changes Prior to 1.2.0 release - Fix bug where --daemonise required an argument. diff ./Create.c~current~ ./Create.c --- ./Create.c~current~ 2003-07-29 10:11:22.000000000 +1000 +++ ./Create.c 2003-07-29 10:11:22.000000000 +1000 @@ -115,10 +115,24 @@ int Create(char *mddev, int mdfd, break; } - if (chunk == 0) { - chunk = 64; - if (verbose) - fprintf(stderr, Name ": chunk size defaults to 64K\n"); + switch(level) { + case 4: + case 5: + case 0: + case -1: /* linear */ + if (chunk == 0) { + chunk = 64; + if (verbose) + fprintf(stderr, Name ": chunk size defaults to 64K\n"); + } + break; + default: /* raid1, multipath */ + if (chunk) { + chunk = 0; + if (verbose) + fprintf(stderr, Name ": chunk size ignored for this level\n"); + } + break; } /* now look at the subdevs */