mdadm/tests/06wrmostly
Neil Brown dfd4d8ee42 Add write-behind support
Currently this includes
  --write-behind  to set level of write-behind supported
  --write-mostly  to flag devices as write-mostly.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 04:25:47 +00:00

16 lines
383 B
Plaintext

set -e
# create a raid1 array with a wrmostly device
$mdadm -CR $md0 -l1 -n3 $dev0 $dev1 --write-mostly $dev2
sh tests/testdev $md0 1 $mdsize0 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 $dev0 $dev1 --write-mostly $dev2
sh tests/testdev $md0 1 $mdsize0 64
$mdadm -S $md0