summaryrefslogtreecommitdiffstats
path: root/tests/06wrmostly
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-03-22 06:53:51 +0100
committerNeilBrown <neilb@suse.de>2012-03-22 06:53:51 +0100
commitae6c05ad83eaa06f70bec0b0120c6befa9be5870 (patch)
treebd8ed279d043991a56163adc880e7b19a35d6f41 /tests/06wrmostly
parentManage: freeze recovery while adding multiple devices. (diff)
downloadmdadm-ae6c05ad83eaa06f70bec0b0120c6befa9be5870.tar.xz
mdadm-ae6c05ad83eaa06f70bec0b0120c6befa9be5870.zip
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>
Diffstat (limited to 'tests/06wrmostly')
-rw-r--r--tests/06wrmostly4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/06wrmostly b/tests/06wrmostly
index 99a48b79..f139a08e 100644
--- a/tests/06wrmostly
+++ b/tests/06wrmostly
@@ -2,13 +2,13 @@
# create a raid1 array with a wrmostly device
mdadm -CR $md0 -l1 -n3 $dev0 $dev1 --write-mostly $dev2
-testdev $md0 1 $mdsize1a 1
+testdev $md0 1 $mdsize1a 64
# unfortunately, we cannot measure if any read requests are going to $dev2
mdadm -S $md0
mdadm -CR $md0 -l1 -n3 --write-behind --bitmap=internal --bitmap-chunk=4 $dev0 $dev1 --write-mostly $dev2
-testdev $md0 1 $mdsize1a 1
+testdev $md0 1 $mdsize1a 64
mdadm -S $md0