]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Create.c
Create: round off size for RAID1 arrays.
authorNeilBrown <neilb@suse.de>
Thu, 22 Mar 2012 05:53:51 +0000 (16:53 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Mar 2012 05:53:51 +0000 (16:53 +1100)
commitae6c05ad83eaa06f70bec0b0120c6befa9be5870
treebd8ed279d043991a56163adc880e7b19a35d6f41
parent9f58469128c99c0d7f434d28657f86789334f253
Create: round off size for RAID1 arrays.

RAID1 arrays don't have a chunk size, but if you ever convert
one to RAID5 you will need at least a small one >= 4K.
So round of size to a multiple of 64K.

This only affect Create, not "--grow --size=max".  The latter
is too hard and with smaller returns.

Signed-off-by: NeilBrown <neilb@suse.de>
18 files changed:
Create.c
tests/00raid1
tests/05r1-bitmapfile
tests/05r1-grow-external
tests/05r1-grow-internal
tests/05r1-grow-internal-1
tests/05r1-internalbitmap
tests/05r1-internalbitmap-v1a
tests/05r1-internalbitmap-v1b
tests/05r1-internalbitmap-v1c
tests/05r1-n3-bitmapfile
tests/05r1-re-add
tests/05r1-re-add-nosuper
tests/06wrmostly
tests/07autoassemble
tests/09imsm-assemble
tests/09imsm-create-fail-rebuild
tests/10ddf-create