diff options
author | NeilBrown <neilb@suse.de> | 2011-05-10 17:35:41 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-05-10 17:35:41 +1000 |
commit | a252c078142d938b716f8c8e9c5866bedb630a18 (patch) | |
tree | becccd055127d4e201da118e103615653354cda6 /mdadm.c | |
parent | dec18cae724516353ef911f5bed6c3bfee5845f1 (diff) |
Create: allow chunksize to be non-power-of-2.
RAID0 has accepted chunksizes that are not a power of 2 since 2.6.30.
So it time mdadm allowed that to be used.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -361,12 +361,12 @@ int main(int argc, char *argv[]) exit(2); } chunk = parse_size(optarg); - if (chunk < 8 || ((chunk-1)&chunk)) { + if (chunk < 8 || (chunk&1)) { fprintf(stderr, Name ": invalid chunk/rounding value: %s\n", optarg); exit(2); } - /* Covert sectors to K */ + /* Convert sectors to K */ chunk /= 2; continue; |