File: 019

package info (click to toggle)
sheepdog 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,364 kB
  • ctags: 3,951
  • sloc: ansic: 30,552; sh: 3,573; perl: 2,924; asm: 453; makefile: 391; python: 192
file content (25 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

# Test object cache writethrough mode

. ./common

for i in `seq 0 5`; do
    _start_sheep $i "-w size=100M"
done

_wait_for_sheep 6

_cluster_format -c 2

_vdi_create test 4M

_random | $DOG vdi write test

for port in `seq 0 5`; do
    $DOG vdi read test -p 700$port | md5sum > $STORE/csum.$port
done

for port in `seq 1 5`; do
    diff -u $STORE/csum.0 $STORE/csum.$port
done